Lint
This commit is contained in:
2 files changed
+16
-16
No files matched your search
@@ -77,12 +77,12 @@ class SuppressWarningsTest extends ApexParserTestBase {
|
||||
|
||||
@Test
|
||||
void testMethodLevelSuppression() {
|
||||
assertWarningsWithFoo(1, "public class Foo {\n" +
|
||||
" @SuppressWarnings('PMD')\n" +
|
||||
" void bar() {\n" +
|
||||
" Integer foo;\n" +
|
||||
" }\n" +
|
||||
"}");
|
||||
assertWarningsWithFoo(1, "public class Foo {\n"
|
||||
+ " @SuppressWarnings('PMD')\n"
|
||||
+ " void bar() {\n"
|
||||
+ " Integer foo;\n"
|
||||
+ " }\n"
|
||||
+ "}");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -146,18 +146,18 @@ class XPathRuleTest {
|
||||
}
|
||||
|
||||
|
||||
private static final String TEST1 = "public class Foo {\n" +
|
||||
" int a;\n" +
|
||||
"}";
|
||||
private static final String TEST1 = "public class Foo {\n"
|
||||
+ " int a;\n"
|
||||
+ "}";
|
||||
|
||||
private static final String TEST2 = "public class Foo {\n" +
|
||||
" int faddle;\n" +
|
||||
" int fiddle;\n" +
|
||||
"}";
|
||||
private static final String TEST2 = "public class Foo {\n"
|
||||
+ " int faddle;\n"
|
||||
+ " int fiddle;\n"
|
||||
+ "}";
|
||||
|
||||
|
||||
private static final String TEST3 = "public class Foo {\n" +
|
||||
" int forbid1; int forbid2; int forbid1$forbid2;\n" +
|
||||
"}";
|
||||
private static final String TEST3 = "public class Foo {\n"
|
||||
+ " int forbid1; int forbid2; int forbid1$forbid2;\n"
|
||||
+ "}";
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user