Skip to content

Commit 3414687

Browse files
committed
SONARJAVA-1272 Disable secondary location test and remove it from apidocs
1 parent adc87ba commit 3414687

3 files changed

Lines changed: 1 addition & 24 deletions

File tree

java-checks-testkit/src/main/java/org/sonar/java/checks/verifier/JavaCheckVerifier.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
* <li>endLine: relative endLine where the highlight ends (i.e. +1), same line if omitted</li>
7575
* <li>endColumn: column where the highlight ends</li>
7676
* <li>effortToFix: the cost to fix as integer</li>
77-
* <li>secondary: a comma separated list of integers identifying the lines of secondary locations if any</li>
7877
* </ul>
7978
*/
8079
@Beta

java-checks-testkit/src/test/java/org/sonar/java/checks/verifier/JavaCheckVerifierTest.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -212,28 +212,6 @@ public void verify_should_fail_when_using_incorrect_endLine() throws IOException
212212
}
213213
}
214214

215-
@Test
216-
public void verify_should_fail_when_using_incorrect_secondaryLocation() throws IOException {
217-
IssuableSubscriptionVisitor visitor = new FakeVisitor().withDefaultIssues();
218-
try {
219-
JavaCheckVerifier.verify("src/test/files/JavaCheckVerifierIncorrectSecondaryLocation.java", visitor);
220-
Fail.fail();
221-
} catch (AssertionError e) {
222-
assertThat(e).hasMessage("Secondary locations: expected: [] unexpected:[3]");
223-
}
224-
}
225-
226-
@Test
227-
public void verify_should_fail_when_using_incorrect_secondaryLocation2() throws IOException {
228-
IssuableSubscriptionVisitor visitor = new FakeVisitor().withDefaultIssues();
229-
try {
230-
JavaCheckVerifier.verify("src/test/files/JavaCheckVerifierIncorrectSecondaryLocation2.java", visitor);
231-
Fail.fail();
232-
} catch (AssertionError e) {
233-
assertThat(e).hasMessage("Secondary locations: expected: [5] unexpected:[]");
234-
}
235-
}
236-
237215
private static class FakeVisitor extends IssuableSubscriptionVisitor {
238216

239217
Multimap<Integer, String> issues = LinkedListMultimap.create();

java-squid/src/main/java/org/sonar/java/model/VisitorsBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public void addIssue(File file, JavaCheck check, int line, String message) {
281281

282282
/**
283283
*
284-
* FIXME(mpaladin) DO NOT GO ON RELEASE WITH THIS CONSTANT SET TO TRUE
284+
* DO NOT GO ON RELEASE WITH THIS CONSTANT SET TO TRUE
285285
*
286286
* **/
287287
private static final boolean ENABLE_NEW_APIS = false;

0 commit comments

Comments
 (0)