Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2018-12-17 01:49:56 -0500
committerManoj Palat2018-12-17 01:49:56 -0500
commit0b3843b4928b0f164072e55bdcd78aa26029a126 (patch)
tree4b786327851743d39a539dd94456294b23fe570e
parentecd4f84ea9cf2f8bbe447a97b21eb6ffe037afd8 (diff)
parent63cf81886d4bbd7a96079191a5cebc2600f39e61 (diff)
downloadeclipse.jdt.core-0b3843b4928b0f164072e55bdcd78aa26029a126.tar.gz
eclipse.jdt.core-0b3843b4928b0f164072e55bdcd78aa26029a126.tar.xz
eclipse.jdt.core-0b3843b4928b0f164072e55bdcd78aa26029a126.zip
Merge remote-tracking branch 'origin/BETA_JAVA_12' into manoj_switch_expr_531714
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java3
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java4971
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java6
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ASTVisitor.java8
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BranchStatement.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java13
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IrritantSet.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/ParserBasicInformation.java8
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java4
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java5
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java28
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java25
19 files changed, 3089 insertions, 2028 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java
index ca1357961d..ea1875195f 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java
@@ -1020,7 +1020,6 @@ public void test012b(){
" <option key=\"org.eclipse.jdt.core.compiler.generateClassFiles\" value=\"enabled\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.maxProblemPerUnit\" value=\"100\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.APILeak\" value=\"warning\"/>\n" +
- " <option key=\"org.eclipse.jdt.core.compiler.problem.EnablePreviews\" value=\"disabled\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.annotationSuperInterface\" value=\"warning\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.assertIdentifier\" value=\"warning\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.autoboxing\" value=\"ignore\"/>\n" +
@@ -1032,6 +1031,7 @@ public void test012b(){
" <option key=\"org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod\" value=\"disabled\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.discouragedReference\" value=\"warning\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.emptyStatement\" value=\"ignore\"/>\n" +
+ " <option key=\"org.eclipse.jdt.core.compiler.problem.enablePreviews\" value=\"disabled\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.enumIdentifier\" value=\"warning\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable\" value=\"ignore\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.fallthroughCase\" value=\"ignore\"/>\n" +
@@ -1091,6 +1091,7 @@ public void test012b(){
" <option key=\"org.eclipse.jdt.core.compiler.problem.redundantSuperinterface\" value=\"ignore\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic\" value=\"ignore\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic\" value=\"ignore\"/>\n" +
+ " <option key=\"org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures\" value=\"ignore\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.specialParameterHidingField\" value=\"disabled\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.staticAccessReceiver\" value=\"warning\"/>\n" +
" <option key=\"org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors\" value=\"disabled\"/>\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java
index c59ead8ac2..e1b9b4594b 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Benjamin Muskalla - Contribution for bug 239066
@@ -76,2083 +80,3032 @@ import org.eclipse.jdt.internal.compiler.problem.ProblemSeverities;
@SuppressWarnings({ "unchecked", "rawtypes" })
public class CompilerInvocationTests extends AbstractRegressionTest {
-public CompilerInvocationTests(String name) {
- super(name);
-}
+ public CompilerInvocationTests(String name) {
+ super(name);
+ }
// Static initializer to specify tests subset using TESTS_* static variables
- // All specified tests which does not belong to the class are skipped...
- // Only the highest compliance level is run; add the VM argument
- // -Dcompliance=1.4 (for example) to lower it if needed
- static {
-// TESTS_NAMES = new String[] { "test003_task_tags_options" };
+ // All specified tests which does not belong to the class are skipped...
+ // Only the highest compliance level is run; add the VM argument
+ // -Dcompliance=1.4 (for example) to lower it if needed
+ static {
+// TESTS_NAMES = new String[] { "test011_problem_categories" };
// TESTS_NUMBERS = new int[] { 1 };
// TESTS_RANGE = new int[] { 1, -1 };
// TESTS_RANGE = new int[] { 1, 2049 };
// TESTS_RANGE = new int[] { 449, 451 };
// TESTS_RANGE = new int[] { 900, 999 };
- }
+ }
-public static Test suite() {
- return buildAllCompliancesTestSuite(testClass());
-}
+ public static Test suite() {
+ return buildAllCompliancesTestSuite(testClass());
+ }
-public static Class testClass() {
- return CompilerInvocationTests.class;
-}
+ public static Class testClass() {
+ return CompilerInvocationTests.class;
+ }
// irritant vs warning token - check To/From symmetry
-public void test001_irritant_warning_token() {
- Map matcher = new HashMap();
- for (int group = 0; group < IrritantSet.GROUP_MAX; group++) {
- for (int i = 0; i < 29; i++) {
- int irritant = (group << IrritantSet.GROUP_SHIFT) + (1 << i);
- String token = CompilerOptions.warningTokenFromIrritant(irritant);
- if (token != null) {
- matcher.put(token, token);
- assertTrue(CompilerOptions.warningTokenToIrritants(token) != null);
+ public void test001_irritant_warning_token() {
+ Map matcher = new HashMap();
+ for (int group = 0; group < IrritantSet.GROUP_MAX; group++) {
+ for (int i = 0; i < 29; i++) {
+ int irritant = (group << IrritantSet.GROUP_SHIFT) + (1 << i);
+ String token = CompilerOptions.warningTokenFromIrritant(irritant);
+ if (token != null) {
+ matcher.put(token, token);
+ assertTrue(CompilerOptions.warningTokenToIrritants(token) != null);
+ }
}
}
+ // Add one for "preview", which doesn't have any irritant at the moment
+ matcher.put("preview", "preview");
+ String[] allTokens = CompilerOptions.warningTokens;
+ int length = allTokens.length;
+ matcher.put("all", "all"); // all gets undetected in the From/To loop
+ assertEquals(allTokens.length, matcher.size());
+ for (int i = 0; i < length; i++) {
+ Object object = matcher.get(allTokens[i]);
+ assertNotNull(object);
+ }
}
- // Add one for "preview", which doesn't have any irritant at the moment
- matcher.put("preview", "preview");
- String [] allTokens = CompilerOptions.warningTokens;
- int length = allTokens.length;
- matcher.put("all", "all"); // all gets undetected in the From/To loop
- assertEquals(allTokens.length, matcher.size());
- for (int i = 0; i < length; i++) {
- Object object = matcher.get(allTokens[i]);
- assertNotNull(object);
- }
-}
// problem categories - check that none is left unspecified
// see also discussion in https://bugs.eclipse.org/bugs/show_bug.cgi?id=208383
-public void test002_problem_categories() {
- try {
- Class iProblemClass;
- Field[] fields = (iProblemClass = IProblem.class).getFields();
- for (int i = 0, length = fields.length; i < length; i++) {
- Field field = fields[i];
- if (field.getType() == Integer.TYPE) {
- int problemId = field.getInt(iProblemClass), maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
- if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask
- && ProblemReporter.getProblemCategory(ProblemSeverities.Error, problemId)
- == CategorizedProblem.CAT_UNSPECIFIED) {
- fail("unspecified category for problem " + field.getName());
+ public void test002_problem_categories() {
+ try {
+ Class iProblemClass;
+ Field[] fields = (iProblemClass = IProblem.class).getFields();
+ for (int i = 0, length = fields.length; i < length; i++) {
+ Field field = fields[i];
+ if (field.getType() == Integer.TYPE) {
+ int problemId = field.getInt(iProblemClass),
+ maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
+ if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask
+ && ProblemReporter.getProblemCategory(ProblemSeverities.Error,
+ problemId) == CategorizedProblem.CAT_UNSPECIFIED) {
+ fail("unspecified category for problem " + field.getName());
+ }
}
}
+ } catch (IllegalAccessException e) {
+ fail("could not access members");
}
}
- catch (IllegalAccessException e) {
- fail("could not access members");
- }
-}
-class TasksReader implements ICompilerRequestor {
- CompilationResult result;
- public void acceptResult(CompilationResult compilationResult) {
- this.result = compilationResult;
+
+ class TasksReader implements ICompilerRequestor {
+ CompilationResult result;
+
+ public void acceptResult(CompilationResult compilationResult) {
+ this.result = compilationResult;
+ }
}
-}
-static String taskTagsAsCutAndPaste(CategorizedProblem tasks[]) {
- StringBuffer result = new StringBuffer();
- String arguments[];
- for (int i = 0; i < tasks.length - 1; i++) {
- arguments = tasks[i].getArguments();
+
+ static String taskTagsAsCutAndPaste(CategorizedProblem tasks[]) {
+ StringBuffer result = new StringBuffer();
+ String arguments[];
+ for (int i = 0; i < tasks.length - 1; i++) {
+ arguments = tasks[i].getArguments();
+ System.out.print("\t\t\"[");
+ System.out.print(arguments[0]);
+ System.out.print(',');
+ System.out.print(arguments[1]);
+ System.out.print(',');
+ System.out.print(arguments[2]);
+ System.out.println("]\\n\" +");
+ }
+ arguments = tasks[tasks.length - 1].getArguments();
System.out.print("\t\t\"[");
System.out.print(arguments[0]);
System.out.print(',');
System.out.print(arguments[1]);
System.out.print(',');
System.out.print(arguments[2]);
- System.out.println("]\\n\" +");
+ System.out.println("]\\n\"");
+ return result.toString();
}
- arguments = tasks[tasks.length - 1].getArguments();
- System.out.print("\t\t\"[");
- System.out.print(arguments[0]);
- System.out.print(',');
- System.out.print(arguments[1]);
- System.out.print(',');
- System.out.print(arguments[2]);
- System.out.println("]\\n\"");
- return result.toString();
-}
-static String taskTagsAsStrings(CategorizedProblem tasks[]) {
- StringBuffer result = new StringBuffer();
- String arguments[];
- for (int i = 0; i < tasks.length; i++) {
- arguments = tasks[i].getArguments();
- result.append('[');
- result.append(arguments[0]);
- result.append(',');
- result.append(arguments[1]);
- result.append(',');
- result.append(arguments[2]);
- result.append(']');
- result.append("\n");
- }
- return result.toString();
-}
-public void runTaskTagsOptionsTest(
- String[] testFiles,
- Map customOptions,
- String expectedTags) {
- TasksReader reader = new TasksReader();
- Map options = JavaCore.getDefaultOptions();
- if (customOptions != null) {
- options.putAll(customOptions);
+
+ static String taskTagsAsStrings(CategorizedProblem tasks[]) {
+ StringBuffer result = new StringBuffer();
+ String arguments[];
+ for (int i = 0; i < tasks.length; i++) {
+ arguments = tasks[i].getArguments();
+ result.append('[');
+ result.append(arguments[0]);
+ result.append(',');
+ result.append(arguments[1]);
+ result.append(',');
+ result.append(arguments[2]);
+ result.append(']');
+ result.append("\n");
+ }
+ return result.toString();
}
- this.runConformTest(
- testFiles,
- "",
- null /* no extra class libraries */,
- true /* flush output directory */,
- null, /* no VM args */
- options,
- reader,
- true /* skip javac */);
- String tags = taskTagsAsStrings(reader.result.tasks);
- if (! tags.equals(expectedTags)) {
- System.out.println(getClass().getName() + '#' + getName());
- System.out.println("Effective results:");
- System.out.println(tags);
- System.out.println("Cut and paste:");
- taskTagsAsCutAndPaste(reader.result.tasks);
- assertEquals(expectedTags, tags);
+
+ public void runTaskTagsOptionsTest(String[] testFiles, Map customOptions, String expectedTags) {
+ TasksReader reader = new TasksReader();
+ Map options = JavaCore.getDefaultOptions();
+ if (customOptions != null) {
+ options.putAll(customOptions);
+ }
+ this.runConformTest(testFiles, "", null /* no extra class libraries */, true /* flush output directory */,
+ null, /* no VM args */
+ options, reader, true /* skip javac */);
+ String tags = taskTagsAsStrings(reader.result.tasks);
+ if (!tags.equals(expectedTags)) {
+ System.out.println(getClass().getName() + '#' + getName());
+ System.out.println("Effective results:");
+ System.out.println(tags);
+ System.out.println("Cut and paste:");
+ taskTagsAsCutAndPaste(reader.result.tasks);
+ assertEquals(expectedTags, tags);
+ }
}
-}
+
// Basic test on task tags: watch default behavior
-public void test003_task_tags_options() {
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- null,
- "[FIXME, message contents,HIGH]\n" +
- "[TODO, message contents,NORMAL]\n" +
- "[XXX, message contents,NORMAL]\n");
-}
+ public void test003_task_tags_options() {
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ null, "[FIXME, message contents,HIGH]\n" + "[TODO, message contents,NORMAL]\n"
+ + "[XXX, message contents,NORMAL]\n");
+ }
+
// effect of cancelling priorities
// reactivate when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=143402 is fixed
-public void _test004_task_tags_options() {
- Map customOptions = new HashMap();
- customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "");
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- customOptions,
- "[FIXME, message contents,NORMAL]\n" +
- "[TODO, message contents,NORMAL]\n" +
- "[XXX, message contents,NORMAL]\n");
-}
+ public void _test004_task_tags_options() {
+ Map customOptions = new HashMap();
+ customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "");
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ customOptions, "[FIXME, message contents,NORMAL]\n" + "[TODO, message contents,NORMAL]\n"
+ + "[XXX, message contents,NORMAL]\n");
+ }
+
// effect of cancelling priorities
// reactivate when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=143402 is fixed
-public void _test005_task_tags_options() {
- Map customOptions = new HashMap();
- customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, ",,");
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- customOptions,
- "[FIXME,message contents,NORMAL]\n" +
- "[TODO,message contents,NORMAL]\n" +
- "[XXX,message contents,NORMAL]\n");
- // would expect an exception of some sort
-}
+ public void _test005_task_tags_options() {
+ Map customOptions = new HashMap();
+ customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, ",,");
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ customOptions, "[FIXME,message contents,NORMAL]\n" + "[TODO,message contents,NORMAL]\n"
+ + "[XXX,message contents,NORMAL]\n");
+ // would expect an exception of some sort
+ }
+
// effect of changing priorities
// reactivate when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=143402 is fixed
-public void _test006_task_tags_options() {
- Map customOptions = new HashMap();
- customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "A,B,C,D,E");
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- customOptions,
- "[FIXME,message contents,NORMAL]\n" +
- "[TODO,message contents,NORMAL]\n" +
- "[XXX,message contents,NORMAL]\n");
- // would expect an exception of some sort
-}
+ public void _test006_task_tags_options() {
+ Map customOptions = new HashMap();
+ customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "A,B,C,D,E");
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ customOptions, "[FIXME,message contents,NORMAL]\n" + "[TODO,message contents,NORMAL]\n"
+ + "[XXX,message contents,NORMAL]\n");
+ // would expect an exception of some sort
+ }
+
// effect of changing priorities
-public void test007_task_tags_options() {
- Map customOptions = new HashMap();
- customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "NORMAL,NORMAL,NORMAL");
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- customOptions,
- "[FIXME, message contents,NORMAL]\n" +
- "[TODO, message contents,NORMAL]\n" +
- "[XXX, message contents,NORMAL]\n");
-}
+ public void test007_task_tags_options() {
+ Map customOptions = new HashMap();
+ customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "NORMAL,NORMAL,NORMAL");
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ customOptions, "[FIXME, message contents,NORMAL]\n" + "[TODO, message contents,NORMAL]\n"
+ + "[XXX, message contents,NORMAL]\n");
+ }
+
// effect of changing priorities
// reactivate when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=143402 is fixed
-public void _test008_task_tags_options() {
- Map customOptions = new HashMap();
- customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "NORMAL,NORMAL"); // one less than the number of tags
- runTaskTagsOptionsTest(
- new String[] {
- "X.java",
- "public class X {\n" +
- " void foo(X x) {\n" +
- " // FIXME TODO XXX message contents\n" +
- " }\n" +
- "}\n"},
- customOptions,
- "[FIXME,message contents,NORMAL]\n" +
- "[TODO,message contents,NORMAL]\n" +
- "[XXX,message contents,NORMAL]\n");
-}
+ public void _test008_task_tags_options() {
+ Map customOptions = new HashMap();
+ customOptions.put(JavaCore.COMPILER_TASK_PRIORITIES, "NORMAL,NORMAL"); // one less than the number of tags
+ runTaskTagsOptionsTest(
+ new String[] { "X.java",
+ "public class X {\n" + " void foo(X x) {\n" + " // FIXME TODO XXX message contents\n"
+ + " }\n" + "}\n" },
+ customOptions, "[FIXME,message contents,NORMAL]\n" + "[TODO,message contents,NORMAL]\n"
+ + "[XXX,message contents,NORMAL]\n");
+ }
+
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=206423
// that bug showed that we had no coverage in the area of missing message
// templates, which can occur downstream in the localization process (assuming
// that we always release the English version right)
-public void test009_missing_message_templates() {
- assertEquals("Unable to retrieve the error message for problem id: 8388607. Check compiler resources.",
- new DefaultProblemFactory().getLocalizedMessage(Integer.MAX_VALUE, new String[]{}));
-}
+ public void test009_missing_message_templates() {
+ assertEquals("Unable to retrieve the error message for problem id: 8388607. Check compiler resources.",
+ new DefaultProblemFactory().getLocalizedMessage(Integer.MAX_VALUE, new String[] {}));
+ }
+
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=206423
-public void test010_missing_elaboration_templates() {
- assertEquals("Unable to retrieve the error message elaboration for elaboration id: 1073741823. Check compiler resources.",
- new DefaultProblemFactory().getLocalizedMessage(0, Integer.MAX_VALUE / 2, new String[]{"Zork"}));
-}
+ public void test010_missing_elaboration_templates() {
+ assertEquals(
+ "Unable to retrieve the error message elaboration for elaboration id: 1073741823. Check compiler resources.",
+ new DefaultProblemFactory().getLocalizedMessage(0, Integer.MAX_VALUE / 2, new String[] { "Zork" }));
+ }
+
// problem categories - check that categories match expected ones
// see also discussion in https://bugs.eclipse.org/bugs/show_bug.cgi?id=208383
-public void test011_problem_categories() {
- try {
- Class iProblemClass;
- class ProblemAttributes {
- boolean deprecated;
- int category;
- ProblemAttributes(int category) {
- this.category = category;
- }
- ProblemAttributes(boolean deprecated) {
- this.deprecated = deprecated;
- }
- }
- ProblemAttributes DEPRECATED = new ProblemAttributes(true);
- Map expectedProblemAttributes = new HashMap();
- expectedProblemAttributes.put("AbstractMethodCannotBeOverridden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AbstractMethodInAbstractClass", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AbstractMethodInEnum", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AbstractMethodMustBeImplemented", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AbstractMethodMustBeImplementedOverConcreteMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AbstractMethodsInConcreteClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("AbstractServiceImplementation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("AmbiguousConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AmbiguousConstructorInDefaultConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AmbiguousConstructorInImplicitConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AmbiguousField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AmbiguousMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AmbiguousType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("AnnotationCannotOverrideMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("AnnotationCircularity", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("AnnotationCircularitySelfReference", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("AnnotationFieldNeedConstantInitialization", DEPRECATED);
- expectedProblemAttributes.put("AnnotationMembersCannotHaveParameters", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AnnotationMembersCannotHaveTypeParameters", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveConstructor", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperclass", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperinterfaces", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AnnotationTypeUsedAsSuperInterface", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("AnnotationValueMustBeAnEnumConstant", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AnnotationValueMustBeAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AnnotationValueMustBeArrayInitializer", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AnnotationValueMustBeClassLiteral", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AnnotationValueMustBeConstant", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AnonymousClassCannotExtendFinalClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ApplicableMethodOverriddenByInapplicable", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ArgumentHidingField", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("ArgumentHidingLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("ArgumentIsNeverUsed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("ArgumentTypeAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("ArgumentTypeCannotBeVoid", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ArgumentTypeCannotBeVoidArray", DEPRECATED);
- expectedProblemAttributes.put("ArgumentTypeInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("ArgumentTypeInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("ArgumentTypeNotFound", DEPRECATED);
- expectedProblemAttributes.put("ArgumentTypeNotVisible", DEPRECATED);
- expectedProblemAttributes.put("ArrayConstantsOnlyInArrayInitializers", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ArrayReferencePotentialNullReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ArrayReferenceRequired", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AssignmentHasNoEffect", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("AssignmentToMultiCatchParameter", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AssignmentToResource", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("AutoManagedResourceNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("AutoManagedVariableResourceNotBelow9", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("BinaryLiteralNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("BodyForAbstractMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("BodyForNativeMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("BoundCannotBeArray", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("BoundHasConflictingArguments", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("BoundMustBeAnInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("BoxingConversion", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("BytecodeExceeds64KLimit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("BytecodeExceeds64KLimitForClinit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("BytecodeExceeds64KLimitForConstructor", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotAllocateVoidArray", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotDeclareEnumSpecialMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("CannotDefineAnnotationInLocalType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotDefineDimensionExpressionsWithInit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotDefineEnumInLocalType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotDefineInterfaceInLocalType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotDefineStaticInitializerInLocalType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotExtendEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotHideAnInstanceMethodWithAStaticMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("CannotImplementIncompatibleNullness", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("CannotImportPackage", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("CannotInferElidedTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotInferInvocationType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotInvokeSuperConstructorInEnum", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("CannotOverrideAStaticMethodWithAnInstanceMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("CannotReadSource", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotReturnInInitializer", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotThrowNull", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CannotThrowType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotUseDiamondWithAnonymousClasses", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotUseDiamondWithExplicitTypeArguments", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CannotUseSuperInCodeSnippet", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ClassExtendFinalClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("CodeCannotBeReached", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CodeSnippetMissingClass", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("CodeSnippetMissingMethod", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ContainerAnnotationTypeHasNonDefaultMembers", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ContainerAnnotationTypeHasShorterRetention", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ContainerAnnotationTypeHasWrongValueType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ContainerAnnotationTypeMustHaveValue", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ContradictoryNullAnnotations", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsOnBound", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsInferred", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsInferredFunctionType", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ComparingIdentical", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ConflictingImport", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("ConflictingNullAnnotations", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ConstructedArrayIncompatible", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ConstructionTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ConflictingInheritedNullAnnotations", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ConstructorReferenceNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ConstructorVarargsArgumentNeedCast", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("CyclicModuleDependency", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("CorruptedSignature", new ProblemAttributes(CategorizedProblem.CAT_BUILDPATH));
- expectedProblemAttributes.put("DanglingReference", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DeadCode", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("DefaultMethodNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("DefaultMethodOverridesObjectMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DereferencingNullableExpression", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("DiamondNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DirectInvocationOfAbstractMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DisallowedTargetForContainerAnnotationType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DisallowedTargetForAnnotation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DisallowedExplicitThisParameter", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("DiscouragedReference", new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION));
- expectedProblemAttributes.put("DuplicateAnnotation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateAnnotationNotMarkedRepeatable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateAnnotationMember", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateBlankFinalFieldInitialization", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateBounds", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateBoundInIntersectionCast", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateCase", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateDefaultCase", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateExports", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("DuplicateField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateFinalLocalInitialization", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateImport", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("DuplicateInheritedMethods", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateInheritedDefaultMethods", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateLabel", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateMethodErasure", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateModifierForArgument", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateModifierForField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateModifierForMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateModifierForType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateModifierForVariable", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateModuleRef", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("DuplicateNestedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateOpens", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("DuplicateParameterizedMethods", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("DuplicateRequires", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("DuplicateResource", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateServices", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("DuplicateSuperInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("DuplicateTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("DuplicateUses", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("EndOfSource", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("EnumAbstractMethodMustBeImplemented", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("EnumConstantCannotDefineAbstractMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("EnumConstantMustImplementAbstractMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("EnumConstantsCannotBeSurroundedByParenthesis", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("EnumStaticFieldInInInitializerContext", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("EnumSwitchCannotTargetField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ExceptionParameterIsNeverUsed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("ExceptionTypeAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("ExceptionTypeInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("ExceptionTypeInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("ExceptionTypeNotFound", DEPRECATED);
- expectedProblemAttributes.put("ExceptionTypeNotVisible", DEPRECATED);
- expectedProblemAttributes.put("ExplicitThisParameterNotInLambda", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ExplicitThisParameterNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ExplicitlyClosedAutoCloseable", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("ExpressionShouldBeAVariable", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ExternalProblemFixable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ExternalProblemNotFixable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ExplicitAnnotationTargetRequired", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("FallthroughCase", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("FieldComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("FieldHidingField", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("FieldHidingLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("FieldMissingDeprecatedAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("FieldMustBeFinal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("FieldTypeAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("FieldTypeInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("FieldTypeInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("FieldTypeNotFound", DEPRECATED);
- expectedProblemAttributes.put("FieldTypeNotVisible", DEPRECATED);
- expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("FinalFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("FinalMethodCannotBeOverridden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("FinalOuterLocalAssignment", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION));
- expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("GenericInferenceError", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); // TODO should be removed via https://bugs.eclipse.org/404675
- expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("GenericTypeCannotExtendThrowable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("HidingEnclosingType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("HierarchyCircularity", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("HierarchyCircularitySelfReference", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("HierarchyHasProblems", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalAbstractModifierCombinationForMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalStrictfpForAbstractInterfaceMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalAccessFromTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalAnnotationForBaseType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalCast", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalClassLiteralForTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalDeclarationOfThisParameter", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalDefaultModifierSpecification", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalDefinitionToNonNullParameter", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalDimension", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalEnclosingInstanceSpecification", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalExtendedDimensions", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalExtendedDimensionsForVarArgs", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalGenericArray", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalHexaLiteral", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalInstanceofParameterizedType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalInstanceofTypeParameter", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalBasetypeInIntersectionCast", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierCombinationFinalAbstractForClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierCombinationFinalVolatileForField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierCombinationForInterfaceMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierCombinationForPrivateInterfaceMethod9", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForAnnotationField", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalModifierForAnnotationMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForAnnotationMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForAnnotationType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForArgument", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForEnumConstant", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForEnumConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForInterfaceField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod18", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForLocalClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForLocalEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForMemberClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForMemberEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForMemberInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalModifierForMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForModule", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod9", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifierForVariable", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalModifiersForElidedType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalModifiers", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalParameterNullityRedefinition", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalPrimitiveOrArrayTypeForEnclosingInstance", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalQualifiedEnumConstantLabel", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalQualifiedParameterizedTypeAllocation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalQualifierForExplicitThis", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalQualifierForExplicitThis2", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalRedefinitionOfTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalReturnNullityRedefinition", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalReturnNullityRedefinitionFreeTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalRedefinitionToNonNullParameter", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("IllegalStaticModifierForMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalTypeAnnotationsInStaticMemberAccess", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalTypeArgumentsInRawConstructorReference", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalTypeForExplicitThis", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalTypeVariableSuperReference", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IllegalUnderscorePosition", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalUsageOfQualifiedTypeReference", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalUsageOfTypeAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("IllegalVararg", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalVarargInLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IllegalVisibilityModifierForInterfaceMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ImplicitObjectBoundNoNullDefault", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ImportAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("ImportInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("ImportInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("ImportNotFound", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("ImportNotVisible", DEPRECATED);
- expectedProblemAttributes.put("IncompatibleExceptionInInheritedMethodThrowsClause", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IncompatibleExceptionInThrowsClause", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("IncompatibleLambdaParameterType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncompatibleMethodReference", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IncompatibleReturnType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("IncompatibleReturnTypeForNonInheritedInterfaceMethod", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("IncompatibleTypesInConditionalOperator", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncompatibleTypesInEqualityOperator", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncompatibleTypesInForeach", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
-
- expectedProblemAttributes.put("IncorrectArityForParameterizedConstructor", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncorrectArityForParameterizedMethod", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncorrectArityForParameterizedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncorrectEnclosingInstanceReference", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncorrectSwitchType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IncorrectSwitchType17", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IndirectAccessToStaticField", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("IndirectAccessToStaticMethod", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("IndirectAccessToStaticType", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("InheritedDefaultMethodConflictsWithOtherInherited", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InheritedFieldHidesEnclosingName", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InheritedIncompatibleReturnType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InheritedMethodHidesEnclosingName", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InheritedMethodReducesVisibility", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InheritedTypeHidesEnclosingName", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InitializerMustCompleteNormally", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InstanceFieldDuringConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InstanceMethodDuringConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InterfaceAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("InterfaceCannotHaveConstructors", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InterfaceCannotHaveInitializers", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InterfaceInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("InterfaceInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("InterfaceNotFound", DEPRECATED);
- expectedProblemAttributes.put("InterfaceNotFunctionalInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InterfaceNotVisible", DEPRECATED);
- expectedProblemAttributes.put("InterfaceStaticMethodInvocationNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InterfaceSuperInvocationNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InternalTypeNameProvided", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IntersectionCastNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidAnnotationMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidArrayConstructorReference", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("InvalidBinary", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidBreak", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidCatchBlockSequence", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidCharacterConstant", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidClassInstantiation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidContinue", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidDigit", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidEncoding", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidExplicitConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidExpressionAsStatement", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidFileNameForPackageAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidFloat", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidHexa", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidHighSurrogate", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidInput", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidLowSurrogate", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidLocationForModifiers", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidNullToSynchronized", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidOctal", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidOpensStatement", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("InvalidOperator", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidParameterizedExceptionType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidParenthesizedExpression", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidServiceIntfType", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("InvalidServiceImplType", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("InvalidTypeExpression", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidTypeArguments", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidTypeForCollection", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidTypeForCollectionTarget14", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidTypeForStaticImport", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("InvalidTypeToSynchronized", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("InvalidTypeVariableExceptionType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidUnaryExpression", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUnicodeEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUnionTypeReferenceSequence", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfForeachStatements", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfStaticImports", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfTypeAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfTypeArguments", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfTypeParameters", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfTypeParametersForAnnotationDeclaration", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfTypeParametersForEnumDeclaration", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfVarargs", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidUsageOfWildcard", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("InvalidVoidExpression", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("IsClassPathCorrect", new ProblemAttributes(CategorizedProblem.CAT_BUILDPATH));
- expectedProblemAttributes.put("JavadocAmbiguousConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousMethodReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateParamName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateReturnTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateThrowsClassName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocEmptyReturnTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocGenericConstructorTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocGenericMethodTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocHiddenReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedFieldHidesEnclosingName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedMethodHidesEnclosingName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedNameHidesEnclosingTypeName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInternalTypeNameProvided", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidMemberTypeQualification", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamTagName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamTagTypeParameter", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeArgs", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeHref", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeUrlReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidThrowsClass", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidThrowsClassName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidValueReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMalformedSeeReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMessagePrefix", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("JavadocMissing", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingHashCharacter", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingIdentifier", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingParamName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingParamTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingReturnTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingSeeReference", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingTagDescription", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingThrowsClassName", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingThrowsTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNoMessageSendOnArrayType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNoMessageSendOnBaseType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNonGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNonGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNonStaticTypeFromStaticInvocation", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUnexpectedTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUnexpectedText", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUnterminatedInlineTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
- expectedProblemAttributes.put("LambdaDescriptorMentionsUnmentionable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("LambdaExpressionNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("LambdaRedeclaresArgument", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("LambdaRedeclaresLocal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("LambdaShapeComputationError", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", DEPRECATED);
- expectedProblemAttributes.put("LocalVariableCannotBeNull", DEPRECATED);
- expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("LocalVariableMayBeNull", DEPRECATED);
- expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MethodMustOverride", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodMustOverrideOrImplement", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodNameClash", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodNameClashHidden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodReducesVisibility", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodReferenceNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("MethodReferenceSwingsBothWays", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodRequiresBody", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodReturnsVoid", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MethodVarargsArgumentNeedCast", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MisplacedTypeAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("MissingArgumentsForParameterizedMemberType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("MissingDefaultCase", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingEnclosingInstance", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("MissingEnumConstantCase", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingEnumConstantCaseDespiteDefault", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingEnumDefaultCase", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnPackage", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnType", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingOverrideAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("MissingRequiresTransitiveForTypeInAPI", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingReturnType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("MissingSemiColon", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("MissingSerialVersion", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingSynchronizedModifierInInheritedMethod", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("MissingTypeInConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MissingTypeInLambda", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MissingTypeInMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("MissingValueForAnnotationMember", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("MultiCatchNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("MultipleFunctionalInterfaces", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("StaticInterfaceMethodNotBelow18", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("MustDefineEitherDimensionExpressionsOrInitializer", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("MustSpecifyPackage", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NativeMethodsCannotBeStrictfp", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NeedToEmulateConstructorAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NeedToEmulateFieldReadAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NeedToEmulateFieldWriteAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NeedToEmulateMethodAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NestedServiceImpl", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NoAdditionalBoundAfterTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NoFieldOnBaseType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NoGenericLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NoImplicitStringConversionForCharArrayExpression", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NoMessageSendOnArrayType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NoMessageSendOnBaseType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NoSuperInInterfaceContext", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("NonBlankFinalLocalAssignment", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NonConstantExpression", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NonDenotableTypeArgumentForAnonymousDiamond", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NonExternalizedStringLiteral", new ProblemAttributes(CategorizedProblem.CAT_NLS));
- expectedProblemAttributes.put("NonGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NonGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NonGenericType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NonNullDefaultDetailIsNotEvaluated", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NonNullExpressionComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonNullMessageSendComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonNullSpecdFieldComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonNullLocalVariableComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonNullTypeVariableFromLegacyMethod", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonNullMethodTypeVariableFromLegacyMethod", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonPublicTypeInAPI", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NonStaticAccessToStaticField", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NonStaticAccessToStaticMethod", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("NonStaticContextForEnumMemberType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NonStaticFieldFromStaticInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NonStaticOrAlienTypeReceiver", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NonStaticTypeFromStaticInvocation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NotAnnotationType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NotAccessibleConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotAccessibleField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotAccessibleMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotAccessibleType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NotAccessiblePackage", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
- expectedProblemAttributes.put("NotExportedTypeInAPI", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ConflictingPackageFromModules", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("ConflictingPackageFromOtherModules", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("NotVisibleConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotVisibleConstructorInDefaultConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotVisibleConstructorInImplicitConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotVisibleField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("NotVisibleType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("NullableFieldReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullAnnotationAtQualifyingType", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("NullAnnotationUnsupportedLocation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NullAnnotationUnsupportedLocationAtType", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("NullExpressionReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullLocalVariableComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullLocalVariableInstanceofYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullLocalVariableReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityMismatchAgainstFreeTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityMismatchingTypeAnnotation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityMismatchingTypeAnnotationSuperHint", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityMismatchTypeArgument", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetail", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetailSuperHint", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullNotCompatibleToFreeTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NullSourceString", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("NullUnboxing", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("NumericValueOutOfRange", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ObjectCannotBeGeneric", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ObjectCannotHaveSuperTypes", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ObjectHasNoSuperclass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ObjectMustBeClass", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("OuterLocalMustBeEffectivelyFinal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("OuterLocalMustBeFinal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("OverridingDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("OverridingDeprecatedSinceVersionMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("OverridingTerminallyDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("OverridingTerminallyDeprecatedSinceVersionMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("OverridingMethodWithoutSuperInvocation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("OverridingNonVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("PackageCollidesWithType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("PackageDoesNotExistOrIsEmpty", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("PackageIsNotExpectedPackage", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("ParameterLackingNonNullAnnotation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ParameterLackingNullableAnnotation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ParsingError", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorDeleteToken", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorDeleteTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInsertToComplete", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInsertToCompletePhrase", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInsertToCompleteScope", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInsertTokenAfter", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInsertTokenBefore", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorInvalidToken", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorMergeTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorMisplacedConstruct", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorNoSuggestion", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorNoSuggestionForTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorOnKeyword", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorOnKeywordNoSuggestion", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorReplaceTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("ParsingErrorUnexpectedEOF", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("PolymorphicMethodNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("PossibleAccidentalBooleanAssignment", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentialHeapPollutionFromVararg", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("PotentiallyUnclosedCloseable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentiallyUnclosedCloseableAtExit", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentialNullLocalVariableReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentialNullExpressionReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentialNullMessageSendReference", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("PotentialNullUnboxing", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ProviderMethodOrConstructorRequiredForServiceImpl", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("PublicClassMustMatchFileName", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RawMemberTypeCannotBeParameterized", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RawTypeReference", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("RecursiveConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("RedefinedArgument", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("RedefinedLocal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("RedundantSpecificationOfTypeArguments", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantLocalVariableNullAssignment", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullAnnotation", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullCheckAgainstNonNullType", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnField", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullExpression", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullSpecdField", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullMessageSend", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnNullLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullCheckOnSpecdNonNullLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotation", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationModule", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationPackage", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationType", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationMethod", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationLocal", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationField", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("RedundantSuperinterface", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("ReferenceExpressionParameterNullityMismatch", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ReferenceExpressionParameterNullityUnchecked", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ReferenceExpressionReturnNullRedef", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ReferenceExpressionReturnNullRedefUnchecked", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ReferenceToForwardField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("RequiredNonNullButProvidedFreeTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RequiredNonNullButProvidedNull", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RequiredNonNullButProvidedPotentialNull", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RequiredNonNullButProvidedSpecdNullable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("RequiredNonNullButProvidedUnknown", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ReferenceToForwardTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RepeatableAnnotationTypeIsDocumented", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RepeatableAnnotationTypeIsInherited", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RepeatableAnnotationTypeTargetMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RepeatableAnnotationWithRepeatingContainerAnnotation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("RepeatedAnnotationWithContainerAnnotation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ResourceHasToImplementAutoCloseable", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ReturnTypeAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("ReturnTypeCannotBeVoidArray", DEPRECATED);
- expectedProblemAttributes.put("ReturnTypeInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("ReturnTypeInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("ReturnTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ReturnTypeNotFound", DEPRECATED);
- expectedProblemAttributes.put("ReturnTypeNotVisible", DEPRECATED);
- expectedProblemAttributes.put("SafeVarargsOnFixedArityMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("SafeVarargsOnNonFinalInstanceMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ServiceImplDefaultConstructorNotPublic", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ServiceImplNotDefinedByModule", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ShouldImplementHashcode", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("ShouldReturnValue", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ShouldReturnValueHintMissingDefault", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("SpecdNonNullLocalVariableComparisonYieldsFalse", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("StaticInheritedMethodConflicts", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("StaticMemberOfParameterizedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("StaticMethodRequested", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("StaticMethodShouldBeAccessedStatically", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("SuperAccessCannotBypassDirectSuper", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SuperCallCannotBypassOverride", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SuperInterfacesCollide", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SuperTypeUsingWildcard", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SuperclassAmbiguous", DEPRECATED);
- expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", DEPRECATED);
- expectedProblemAttributes.put("SuperclassInternalNameProvided", DEPRECATED);
- expectedProblemAttributes.put("SuperclassMustBeAClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SuperclassNotFound", DEPRECATED);
- expectedProblemAttributes.put("SuperclassNotVisible", DEPRECATED);
- expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("SwitchOnEnumNotBelow15", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("SwitchOnStringsNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TargetTypeNotAFunctionalInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("Task", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ThisInStaticContext", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("ToleratedMisplacedTypeAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("TooManyArgumentSlots", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyArrayDimensions", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyBytesForStringConstant", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyConstantsInConstantPool", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyFields", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyLocalVariableSlots", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyMethods", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManyParametersForSyntheticMethod", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TooManySyntheticArgumentSlots", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("TypeAnnotationAtQualifiedName", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("TypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TypeArgumentsForRawGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TypeArgumentsForRawGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TypeCollidesWithPackage", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TypeHidingType", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("TypeHidingTypeParameterFromMethod", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("TypeHidingTypeParameterFromType", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("TypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("TypeMissingDeprecatedAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("TypeParameterHidingType", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
- expectedProblemAttributes.put("UnboxingConversion", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("UncheckedAccessOfValueOfFreeTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnclosedCloseable", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnclosedCloseableAtExit", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UndefinedAnnotationMember", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedConstructorInDefaultConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedConstructorInImplicitConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedLabel", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("UndefinedMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedModule", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UndefinedName", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UndefinedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UndefinedTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("UnderscoresInLiteralsNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UndocumentedEmptyBlock", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("UnexpectedStaticModifierForField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UnexpectedStaticModifierForMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UnhandledException", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UnhandledExceptionInDefaultConstructor", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UnhandledExceptionInImplicitConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UnhandledExceptionOnAutoClose", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UnhandledWarningToken", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UninitializedBlankFinalField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UninitializedBlankFinalFieldHintMissingDefault", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UninitializedFreeTypeVariableField", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UninitializedFreeTypeVariableFieldHintMissingDefault", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UninitializedLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("UninitializedLocalVariableHintMissingDefault", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("UninitializedNonNullField", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UninitializedNonNullFieldHintMissingDefault", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UninternedIdentityComparison", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UnlikelyCollectionMethodArgumentType", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnlikelyEqualsArgumentType", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnmatchedBracket", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UnnamedPackageInNamedModule", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UnnecessaryArgumentCast", DEPRECATED);
- expectedProblemAttributes.put("UnnecessaryCast", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnnecessaryElse", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnnecessaryInstanceof", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnnecessaryNLSTag", new ProblemAttributes(CategorizedProblem.CAT_NLS));
- expectedProblemAttributes.put("UnqualifiedFieldAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("UnreachableCatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("UnresolvedVariable", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UnsafeElementTypeConversion", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeGenericArrayForVarargs", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeGenericCast", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeNullnessCast", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnsafeRawConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeRawFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeRawGenericConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeRawGenericMethodInvocation", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeRawMethodInvocation", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeReturnTypeOverride", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnsafeTypeConversion", new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
- expectedProblemAttributes.put("UnstableAutoModuleName", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnterminatedComment", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UnterminatedString", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UnusedConstructorDeclaredThrownException", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedImport", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedLabel", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedMethodDeclaredThrownException", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedObjectAllocation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
- expectedProblemAttributes.put("UnusedPrivateConstructor", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedPrivateField", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedPrivateMethod", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedPrivateType", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedTypeArgumentsForConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UnusedTypeParameter", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UnusedTypeArgumentsForMethodInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("UnusedWarningToken", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- expectedProblemAttributes.put("UseAssertAsAnIdentifier", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("UseEnumAsAnIdentifier", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
- expectedProblemAttributes.put("IllegalUseOfUnderscoreAsAnIdentifier", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("UsingDeprecatedConstructor", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedField", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedModule", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedPackage", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UsingDeprecatedType", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionConstructor", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionField", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionModule", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionPackage", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionType", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedConstructor", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedField", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedModule", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedPackage", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedType", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionConstructor", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionField", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionMethod", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionModule", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionPackage", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType", new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
- expectedProblemAttributes.put("VarCannotBeMixedWithNonVarParams", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarIsNotAllowedHere", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarIsReserved", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarIsReservedInFuture", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarLocalCannotBeArray", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarLocalCannotBeArrayInitalizers", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("VarLocalCannotBeLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("VarLocalCannotBeMethodReference", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("VarLocalInitializedToNull", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("VarLocalInitializedToVoid", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("VarLocalMultipleDeclarators", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarLocalReferencesItself", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarLocalCannotBeArray", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarLocalWithoutInitizalier", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
- expectedProblemAttributes.put("VarargsElementTypeNotVisible", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("VarargsElementTypeNotVisibleForConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("VarargsConflict", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("VariableTypeCannotBeVoid", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
- expectedProblemAttributes.put("VariableTypeCannotBeVoidArray", DEPRECATED);
- expectedProblemAttributes.put("VoidMethodReturnsValue", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
- expectedProblemAttributes.put("WildcardConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("WildcardFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("WildcardMethodInvocation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("illFormedParameterizationOfFunctionalInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("lambdaParameterTypeMismatched", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("lambdaSignatureMismatched", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalArrayOfUnionType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("IllegalArrayTypeInIntersectionCast", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
- expectedProblemAttributes.put("ProblemNotAnalysed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
- StringBuffer failures = new StringBuffer();
- StringBuffer correctResult = new StringBuffer(70000);
- Field[] fields = (iProblemClass = IProblem.class).getFields();
- Arrays.sort(fields, new Comparator() {
- public int compare(Object o1, Object o2) {
- Field field1 = (Field) o1;
- Field field2 = (Field) o2;
- return field1.getName().compareTo(field2.getName());
+ public void test011_problem_categories() {
+ try {
+ Class iProblemClass;
+ class ProblemAttributes {
+ boolean deprecated;
+ int category;
+
+ ProblemAttributes(int category) {
+ this.category = category;
+ }
+
+ ProblemAttributes(boolean deprecated) {
+ this.deprecated = deprecated;
+ }
}
- });
- boolean watchInternalCategory = false, printHeader = true;
- for (int i = 0, length = fields.length; i < length; i++) {
- Field field = fields[i];
- if (field.getType() == Integer.TYPE) {
- int problemId = field.getInt(iProblemClass);
- int maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
- if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask) {
- String name = field.getName();
- ProblemAttributes expectedAttributes = (ProblemAttributes) expectedProblemAttributes.get(name);
- if (expectedAttributes == null) {
- failures.append("missing expected problem attributes for problem " + name + "\n");
- int actualCategory = ProblemReporter.getProblemCategory(ProblemSeverities.Error, problemId);
- correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", new ProblemAttributes(CategorizedProblem." + categoryName(actualCategory) + "));\n");
- } else if (!expectedAttributes.deprecated) {
- int actualCategory = ProblemReporter.getProblemCategory(ProblemSeverities.Error, problemId);
- correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", new ProblemAttributes(CategorizedProblem." + categoryName(actualCategory) + "));\n");
- if (expectedAttributes.category != actualCategory) {
- failures.append("category mismatch for problem " + name + " (expected " + categoryName(expectedAttributes.category) + ", got " + categoryName(actualCategory) + ")\n");
- }
- if (watchInternalCategory && actualCategory == CategorizedProblem.CAT_INTERNAL) {
- if (printHeader) {
- printHeader = false;
- System.err.println("CAT_INTERNAL for problems:");
+ ProblemAttributes DEPRECATED = new ProblemAttributes(true);
+ Map expectedProblemAttributes = new HashMap();
+ expectedProblemAttributes.put("AbstractMethodCannotBeOverridden",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AbstractMethodInAbstractClass",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AbstractMethodInEnum", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AbstractMethodMustBeImplemented",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AbstractMethodMustBeImplementedOverConcreteMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AbstractMethodsInConcreteClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("AbstractServiceImplementation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("AmbiguousConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AmbiguousConstructorInDefaultConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AmbiguousConstructorInImplicitConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AmbiguousField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AmbiguousMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AmbiguousType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("AnnotationCannotOverrideMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("AnnotationCircularity", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("AnnotationCircularitySelfReference",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("AnnotationFieldNeedConstantInitialization", DEPRECATED);
+ expectedProblemAttributes.put("AnnotationMembersCannotHaveParameters",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AnnotationMembersCannotHaveTypeParameters",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperclass",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperinterfaces",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AnnotationTypeUsedAsSuperInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("AnnotationValueMustBeAnEnumConstant",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AnnotationValueMustBeAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AnnotationValueMustBeArrayInitializer",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AnnotationValueMustBeClassLiteral",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AnnotationValueMustBeConstant",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AnonymousClassCannotExtendFinalClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ApplicableMethodOverriddenByInapplicable",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ArgumentHidingField",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("ArgumentHidingLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("ArgumentIsNeverUsed",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("ArgumentTypeAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("ArgumentTypeCannotBeVoid",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ArgumentTypeCannotBeVoidArray", DEPRECATED);
+ expectedProblemAttributes.put("ArgumentTypeInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("ArgumentTypeInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("ArgumentTypeNotFound", DEPRECATED);
+ expectedProblemAttributes.put("ArgumentTypeNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("ArrayConstantsOnlyInArrayInitializers",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ArrayReferencePotentialNullReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ArrayReferenceRequired",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AssignmentHasNoEffect",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("AssignmentToMultiCatchParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AssignmentToResource",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("AutoManagedResourceNotBelow17",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("AutoManagedVariableResourceNotBelow9",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("BinaryLiteralNotBelow17",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("BodyForAbstractMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("BodyForNativeMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("BoundCannotBeArray", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("BoundHasConflictingArguments",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("BoundMustBeAnInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("BoxingConversion", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("BytecodeExceeds64KLimit",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("BytecodeExceeds64KLimitForClinit",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("BytecodeExceeds64KLimitForConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotAllocateVoidArray",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotDeclareEnumSpecialMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("CannotDefineAnnotationInLocalType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotDefineDimensionExpressionsWithInit",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotDefineEnumInLocalType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotDefineInterfaceInLocalType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotDefineStaticInitializerInLocalType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotExtendEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotHideAnInstanceMethodWithAStaticMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("CannotImplementIncompatibleNullness",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("CannotImportPackage", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("CannotInferElidedTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotInferInvocationType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotInvokeSuperConstructorInEnum",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("CannotOverrideAStaticMethodWithAnInstanceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("CannotReadSource", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotReturnInInitializer",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotThrowNull", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CannotThrowType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotUseDiamondWithAnonymousClasses",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotUseDiamondWithExplicitTypeArguments",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CannotUseSuperInCodeSnippet",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ClassExtendFinalClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("CodeCannotBeReached",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CodeSnippetMissingClass",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("CodeSnippetMissingMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasNonDefaultMembers",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasShorterRetention",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasWrongValueType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ContainerAnnotationTypeMustHaveValue",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ContradictoryNullAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsOnBound",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsInferred",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsInferredFunctionType",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ComparingIdentical",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ConflictingImport", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("ConflictingNullAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ConstructedArrayIncompatible",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ConstructionTypeMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ConflictingInheritedNullAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ConstructorReferenceNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ConstructorVarargsArgumentNeedCast",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("CyclicModuleDependency",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("CorruptedSignature",
+ new ProblemAttributes(CategorizedProblem.CAT_BUILDPATH));
+ expectedProblemAttributes.put("DanglingReference", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DeadCode",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("DefaultMethodNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("DefaultMethodOverridesObjectMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DereferencingNullableExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("DiamondNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DirectInvocationOfAbstractMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DisallowedTargetForContainerAnnotationType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DisallowedTargetForAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DisallowedExplicitThisParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("DiscouragedReference",
+ new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION));
+ expectedProblemAttributes.put("DuplicateAnnotation", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateAnnotationNotMarkedRepeatable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateAnnotationMember",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateBlankFinalFieldInitialization",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateBounds", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateBoundInIntersectionCast",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateCase", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateDefaultCase",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateExports", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("DuplicateField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateFinalLocalInitialization",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateImport", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("DuplicateInheritedMethods",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateInheritedDefaultMethods",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateLabel", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateMethodErasure", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateModifierForArgument",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateModifierForField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateModifierForMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateModifierForType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateModifierForVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateModuleRef", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("DuplicateNestedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateOpens", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("DuplicateParameterizedMethods",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("DuplicateRequires", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("DuplicateResource", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateServices", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("DuplicateSuperInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("DuplicateTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("DuplicateUses", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("EmptyControlFlowStatement",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("EnclosingInstanceInConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("EndOfSource", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("EnumAbstractMethodMustBeImplemented",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("EnumConstantCannotDefineAbstractMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("EnumConstantMustImplementAbstractMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("EnumConstantsCannotBeSurroundedByParenthesis",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("EnumStaticFieldInInInitializerContext",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("EnumSwitchCannotTargetField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ExceptionParameterIsNeverUsed",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("ExceptionTypeAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("ExceptionTypeInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("ExceptionTypeInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("ExceptionTypeNotFound", DEPRECATED);
+ expectedProblemAttributes.put("ExceptionTypeNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("ExplicitThisParameterNotInLambda",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ExplicitThisParameterNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ExplicitlyClosedAutoCloseable",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("ExpressionShouldBeAVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ExternalProblemFixable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ExternalProblemNotFixable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ExplicitAnnotationTargetRequired",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("FallthroughCase",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("FieldComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("FieldHidingField",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("FieldHidingLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("FieldMissingDeprecatedAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("FieldMustBeFinal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("FieldTypeAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("FieldTypeInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("FieldTypeInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("FieldTypeNotFound", DEPRECATED);
+ expectedProblemAttributes.put("FieldTypeNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("FinalBoundForTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("FinalFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("FinalMethodCannotBeOverridden",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("FinalOuterLocalAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("FinallyMustCompleteNormally",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ForbiddenReference",
+ new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION));
+ expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("GenericInferenceError",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); // TODO should be removed via
+ // https://bugs.eclipse.org/404675
+ expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("GenericTypeCannotExtendThrowable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("HidingEnclosingType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("HierarchyCircularity", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("HierarchyCircularitySelfReference",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("HierarchyHasProblems", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalAbstractModifierCombinationForMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalStrictfpForAbstractInterfaceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalAccessFromTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalAnnotationForBaseType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalCast", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalClassLiteralForTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalDeclarationOfThisParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalDefaultModifierSpecification",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalDefinitionToNonNullParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalDimension", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalEnclosingInstanceSpecification",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalExtendedDimensions",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalExtendedDimensionsForVarArgs",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalGenericArray", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalHexaLiteral", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalInstanceofParameterizedType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalInstanceofTypeParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalBasetypeInIntersectionCast",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierCombinationFinalAbstractForClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierCombinationFinalVolatileForField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierCombinationForInterfaceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierCombinationForPrivateInterfaceMethod9",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForAnnotationField",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalModifierForAnnotationMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForAnnotationMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForAnnotationType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForArgument",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForEnum", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForEnumConstant",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForEnumConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForInterfaceField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod18",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForLocalClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForLocalEnum",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForMemberClass",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForMemberEnum",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForMemberInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalModifierForMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForModule",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod9",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifierForVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalModifiersForElidedType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalModifiers", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalParameterNullityRedefinition",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalPrimitiveOrArrayTypeForEnclosingInstance",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalQualifiedEnumConstantLabel",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalQualifiedParameterizedTypeAllocation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalQualifierForExplicitThis",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalQualifierForExplicitThis2",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalRedefinitionOfTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalReturnNullityRedefinition",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalReturnNullityRedefinitionFreeTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalRedefinitionToNonNullParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("IllegalStaticModifierForMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalTypeAnnotationsInStaticMemberAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalTypeArgumentsInRawConstructorReference",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalTypeForExplicitThis",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalTypeVariableSuperReference",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IllegalUnderscorePosition",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalUsageOfQualifiedTypeReference",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalUsageOfTypeAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("IllegalVararg", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalVarargInLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IllegalVisibilityModifierForInterfaceMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ImplicitObjectBoundNoNullDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ImportAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("ImportInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("ImportInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("ImportNotFound", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("ImportNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("IncompatibleExceptionInInheritedMethodThrowsClause",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IncompatibleExceptionInThrowsClause",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("IncompatibleLambdaParameterType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncompatibleMethodReference",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IncompatibleReturnType",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("IncompatibleReturnTypeForNonInheritedInterfaceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("IncompatibleTypesInConditionalOperator",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncompatibleTypesInEqualityOperator",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncompatibleTypesInForeach",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+
+ expectedProblemAttributes.put("IncorrectArityForParameterizedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncorrectArityForParameterizedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncorrectArityForParameterizedType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncorrectEnclosingInstanceReference",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncorrectSwitchType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IncorrectSwitchType17", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IndirectAccessToStaticField",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("IndirectAccessToStaticMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("IndirectAccessToStaticType",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("InheritedDefaultMethodConflictsWithOtherInherited",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InheritedFieldHidesEnclosingName",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InheritedIncompatibleReturnType",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InheritedMethodHidesEnclosingName",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InheritedMethodReducesVisibility",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InheritedTypeHidesEnclosingName",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InitializerMustCompleteNormally",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InstanceFieldDuringConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InstanceMethodDuringConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InterfaceAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("InterfaceCannotHaveConstructors",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InterfaceCannotHaveInitializers",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InterfaceInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("InterfaceInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("InterfaceNotFound", DEPRECATED);
+ expectedProblemAttributes.put("InterfaceNotFunctionalInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InterfaceNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("InterfaceStaticMethodInvocationNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InterfaceSuperInvocationNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InternalTypeNameProvided",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IntersectionCastNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidAnnotationMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidArrayConstructorReference",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("InvalidBinary", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidBreak", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidCatchBlockSequence",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidCharacterConstant",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidClassInstantiation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidContinue", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidDigit", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidEncoding", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidExplicitConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidExpressionAsStatement",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidFileNameForPackageAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidFloat", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidHexa", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidHighSurrogate", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidInput", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidLowSurrogate", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidLocationForModifiers",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidNullToSynchronized",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidOctal", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidOpensStatement",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("InvalidOperator", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidParameterizedExceptionType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidParenthesizedExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidServiceIntfType",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("InvalidServiceImplType",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("InvalidTypeExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidTypeArguments", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidTypeForCollection",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidTypeForCollectionTarget14",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidTypeForStaticImport",
+ new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("InvalidTypeToSynchronized",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("InvalidTypeVariableExceptionType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidUnaryExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUnicodeEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUnionTypeReferenceSequence",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfForeachStatements",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfStaticImports",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfTypeAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfTypeArguments",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfTypeParameters",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfTypeParametersForAnnotationDeclaration",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfTypeParametersForEnumDeclaration",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfVarargs",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidUsageOfWildcard",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("InvalidVoidExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("IsClassPathCorrect",
+ new ProblemAttributes(CategorizedProblem.CAT_BUILDPATH));
+ expectedProblemAttributes.put("JavadocAmbiguousConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousField",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousMethodReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateParamName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateReturnTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateThrowsClassName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocEmptyReturnTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocGenericConstructorTypeArgumentMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocGenericMethodTypeArgumentMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocHiddenReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedFieldHidesEnclosingName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedMethodHidesEnclosingName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedNameHidesEnclosingTypeName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInternalTypeNameProvided",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidMemberTypeQualification",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamTagName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamTagTypeParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeArgs",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeHref",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeUrlReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidTag", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidThrowsClass",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidThrowsClassName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidValueReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMalformedSeeReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMessagePrefix",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("JavadocMissing", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingHashCharacter",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingIdentifier",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingParamName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingParamTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingReturnTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingSeeReference",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingTagDescription",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingThrowsClassName",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingThrowsTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNoMessageSendOnArrayType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNoMessageSendOnBaseType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonGenericConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonGenericMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonStaticTypeFromStaticInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleField",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedField",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnexpectedTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnexpectedText",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnterminatedInlineTag",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedField",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedType",
+ new ProblemAttributes(CategorizedProblem.CAT_JAVADOC));
+ expectedProblemAttributes.put("LambdaDescriptorMentionsUnmentionable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("LambdaExpressionNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("LambdaRedeclaresArgument",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("LambdaRedeclaresLocal",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("LambdaShapeComputationError",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", DEPRECATED);
+ expectedProblemAttributes.put("LocalVariableCannotBeNull", DEPRECATED);
+ expectedProblemAttributes.put("LocalVariableHidingField",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("LocalVariableHidingLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("LocalVariableIsNeverUsed",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("LocalVariableMayBeNull", DEPRECATED);
+ expectedProblemAttributes.put("MaskedCatch",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MethodButWithConstructorName",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MethodCanBePotentiallyStatic",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MethodCanBeStatic",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MethodMustOverride", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodMustOverrideOrImplement",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodNameClash", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodNameClashHidden",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodReducesVisibility",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodReferenceNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("MethodReferenceSwingsBothWays",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodRequiresBody", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodReturnsVoid", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MethodVarargsArgumentNeedCast",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MisplacedTypeAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("MissingArgumentsForParameterizedMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("MissingDefaultCase",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingEnclosingInstance",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("MissingEnumConstantCase",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingEnumConstantCaseDespiteDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingEnumDefaultCase",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnType",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingOverrideAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("MissingRequiresTransitiveForTypeInAPI",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingReturnType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("MissingSemiColon", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("MissingSerialVersion",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingSynchronizedModifierInInheritedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("MissingTypeInConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MissingTypeInLambda", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MissingTypeInMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("MissingValueForAnnotationMember",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("MultiCatchNotBelow17", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("MultipleFunctionalInterfaces",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("StaticInterfaceMethodNotBelow18",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("MustDefineEitherDimensionExpressionsOrInitializer",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("MustSpecifyPackage", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NativeMethodsCannotBeStrictfp",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NeedToEmulateConstructorAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NeedToEmulateFieldReadAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NeedToEmulateFieldWriteAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NeedToEmulateMethodAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NestedServiceImpl", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NoAdditionalBoundAfterTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NoFieldOnBaseType", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NoGenericLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NoImplicitStringConversionForCharArrayExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NoMessageSendOnArrayType",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NoMessageSendOnBaseType",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NoSuperInInterfaceContext",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("NonBlankFinalLocalAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NonConstantExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NonDenotableTypeArgumentForAnonymousDiamond",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NonExternalizedStringLiteral",
+ new ProblemAttributes(CategorizedProblem.CAT_NLS));
+ expectedProblemAttributes.put("NonGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NonGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NonGenericType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NonNullDefaultDetailIsNotEvaluated",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NonNullExpressionComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonNullMessageSendComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonNullSpecdFieldComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonNullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonNullTypeVariableFromLegacyMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonNullMethodTypeVariableFromLegacyMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonPublicTypeInAPI",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NonStaticAccessToStaticField",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NonStaticAccessToStaticMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("NonStaticContextForEnumMemberType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NonStaticFieldFromStaticInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NonStaticOrAlienTypeReceiver",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NonStaticTypeFromStaticInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NotAnnotationType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NotAccessibleConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotAccessibleField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotAccessibleMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotAccessibleType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NotAccessiblePackage", new ProblemAttributes(CategorizedProblem.CAT_IMPORT));
+ expectedProblemAttributes.put("NotExportedTypeInAPI",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ConflictingPackageFromModules",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("ConflictingPackageFromOtherModules",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("NotVisibleConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotVisibleConstructorInDefaultConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotVisibleConstructorInImplicitConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotVisibleField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("NotVisibleType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("NullableFieldReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullAnnotationAtQualifyingType",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("NullAnnotationUnsupportedLocation",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NullAnnotationUnsupportedLocationAtType",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("NullExpressionReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullLocalVariableInstanceofYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullLocalVariableReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityMismatchAgainstFreeTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityMismatchingTypeAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityMismatchingTypeAnnotationSuperHint",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityMismatchTypeArgument",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetail",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetailSuperHint",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullNotCompatibleToFreeTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NullSourceString", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("NullUnboxing",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("NumericValueOutOfRange",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ObjectCannotBeGeneric",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ObjectCannotHaveSuperTypes",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ObjectHasNoSuperclass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ObjectMustBeClass", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("OuterLocalMustBeEffectivelyFinal",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("OuterLocalMustBeFinal",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("OverridingDeprecatedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("OverridingDeprecatedSinceVersionMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("OverridingTerminallyDeprecatedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("OverridingTerminallyDeprecatedSinceVersionMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("OverridingMethodWithoutSuperInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("OverridingNonVisibleMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("PackageCollidesWithType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("PackageDoesNotExistOrIsEmpty",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("PackageIsNotExpectedPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ParameterAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("ParameterLackingNonNullAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ParameterLackingNullableAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ParsingError", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorDeleteToken",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorDeleteTokens",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInsertToComplete",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInsertToCompletePhrase",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInsertToCompleteScope",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInsertTokenAfter",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInsertTokenBefore",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorInvalidToken",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorMergeTokens",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorMisplacedConstruct",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorNoSuggestion",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorNoSuggestionForTokens",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorOnKeyword",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorOnKeywordNoSuggestion",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorReplaceTokens",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("ParsingErrorUnexpectedEOF",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("PolymorphicMethodNotBelow17",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("PossibleAccidentalBooleanAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentialHeapPollutionFromVararg",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("PotentiallyUnclosedCloseable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentiallyUnclosedCloseableAtExit",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentialNullLocalVariableReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentialNullExpressionReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentialNullMessageSendReference",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("PotentialNullUnboxing",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ProviderMethodOrConstructorRequiredForServiceImpl",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("PublicClassMustMatchFileName",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RawMemberTypeCannotBeParameterized",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RawTypeReference",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("RecursiveConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("RedefinedArgument", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("RedefinedLocal", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("RedundantSpecificationOfTypeArguments",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantLocalVariableNullAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullCheckAgainstNonNullType",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnField",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullSpecdField",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullMessageSend",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnNullLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullCheckOnSpecdNonNullLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationModule",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationType",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationLocal",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationField",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("RedundantSuperinterface",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("ReferenceExpressionParameterNullityMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ReferenceExpressionParameterNullityUnchecked",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ReferenceExpressionReturnNullRedef",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ReferenceExpressionReturnNullRedefUnchecked",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ReferenceToForwardField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedFreeTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedNull",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedPotentialNull",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedSpecdNullable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedUnknown",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ReferenceToForwardTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RepeatableAnnotationTypeIsDocumented",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RepeatableAnnotationTypeIsInherited",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RepeatableAnnotationTypeTargetMismatch",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RepeatableAnnotationWithRepeatingContainerAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("RepeatedAnnotationWithContainerAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ResourceHasToImplementAutoCloseable",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ReturnTypeAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("ReturnTypeCannotBeVoidArray", DEPRECATED);
+ expectedProblemAttributes.put("ReturnTypeInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("ReturnTypeInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("ReturnTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ReturnTypeNotFound", DEPRECATED);
+ expectedProblemAttributes.put("ReturnTypeNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("SafeVarargsOnFixedArityMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("SafeVarargsOnNonFinalInstanceMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ServiceImplDefaultConstructorNotPublic",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ServiceImplNotDefinedByModule",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ShouldImplementHashcode",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("ShouldReturnValue", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ShouldReturnValueHintMissingDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("SpecdNonNullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("StaticInheritedMethodConflicts",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("StaticMemberOfParameterizedType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("StaticMethodRequested",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("StaticMethodShouldBeAccessedStatically",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("SuperAccessCannotBypassDirectSuper",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SuperCallCannotBypassOverride",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SuperInterfacesCollide", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SuperTypeUsingWildcard", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SuperclassAmbiguous", DEPRECATED);
+ expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", DEPRECATED);
+ expectedProblemAttributes.put("SuperclassInternalNameProvided", DEPRECATED);
+ expectedProblemAttributes.put("SuperclassMustBeAClass", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SuperclassNotFound", DEPRECATED);
+ expectedProblemAttributes.put("SuperclassNotVisible", DEPRECATED);
+ expectedProblemAttributes.put("SuperfluousSemicolon",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("SwitchOnEnumNotBelow15", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SwitchOnStringsNotBelow17",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TargetTypeNotAFunctionalInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("Task", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ThisInStaticContext",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("ToleratedMisplacedTypeAnnotations",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("TooManyArgumentSlots",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyArrayDimensions",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyBytesForStringConstant",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyConstantsInConstantPool",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyFields", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyLocalVariableSlots",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyMethods", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManyParametersForSyntheticMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TooManySyntheticArgumentSlots",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("TypeAnnotationAtQualifiedName",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("TypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TypeArgumentsForRawGenericConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TypeArgumentsForRawGenericMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TypeCollidesWithPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TypeHidingType",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("TypeHidingTypeParameterFromMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("TypeHidingTypeParameterFromType",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("TypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("TypeMissingDeprecatedAnnotation",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("TypeParameterHidingType",
+ new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT));
+ expectedProblemAttributes.put("UnboxingConversion",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("UncheckedAccessOfValueOfFreeTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnclosedCloseable",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnclosedCloseableAtExit",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UndefinedAnnotationMember",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedConstructor", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedConstructorInDefaultConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedConstructorInImplicitConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedField", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedLabel", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("UndefinedMethod", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedModule", new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UndefinedName", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UndefinedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UndefinedTypeVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("UnderscoresInLiteralsNotBelow17",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UndocumentedEmptyBlock",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("UnexpectedStaticModifierForField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UnexpectedStaticModifierForMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UnhandledException", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UnhandledExceptionInDefaultConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UnhandledExceptionInImplicitConstructorCall",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UnhandledExceptionOnAutoClose",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UnhandledWarningToken",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UninitializedBlankFinalField",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UninitializedBlankFinalFieldHintMissingDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UninitializedFreeTypeVariableField",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UninitializedFreeTypeVariableFieldHintMissingDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UninitializedLocalVariable",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("UninitializedLocalVariableHintMissingDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("UninitializedNonNullField",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UninitializedNonNullFieldHintMissingDefault",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UninternedIdentityComparison",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UnlikelyCollectionMethodArgumentType",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnlikelyEqualsArgumentType",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnmatchedBracket", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UnnamedPackageInNamedModule",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UnnecessaryArgumentCast", DEPRECATED);
+ expectedProblemAttributes.put("UnnecessaryCast",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnnecessaryElse",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnnecessaryInstanceof",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnnecessaryNLSTag", new ProblemAttributes(CategorizedProblem.CAT_NLS));
+ expectedProblemAttributes.put("UnqualifiedFieldAccess",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("UnreachableCatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("UnresolvedVariable", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UnsafeElementTypeConversion",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeGenericArrayForVarargs",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeGenericCast",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeNullnessCast",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnsafeRawConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeRawFieldAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeRawGenericConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeRawGenericMethodInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeRawMethodInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeReturnTypeOverride",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnsafeTypeConversion",
+ new ProblemAttributes(CategorizedProblem.CAT_UNCHECKED_RAW));
+ expectedProblemAttributes.put("UnstableAutoModuleName",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnterminatedComment", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UnterminatedString", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UnusedConstructorDeclaredThrownException",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedImport",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedLabel",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedMethodDeclaredThrownException",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedObjectAllocation",
+ new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
+ expectedProblemAttributes.put("UnusedPrivateConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedPrivateField",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedPrivateMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedPrivateType",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedTypeArgumentsForConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UnusedTypeParameter",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UnusedTypeArgumentsForMethodInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("UnusedWarningToken",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("UseAssertAsAnIdentifier",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("UseEnumAsAnIdentifier",
+ new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE));
+ expectedProblemAttributes.put("IllegalUseOfUnderscoreAsAnIdentifier",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("UsingDeprecatedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedField",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedModule",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UsingDeprecatedType",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionField",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionModule",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionType",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedField",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedModule",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedType",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionField",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionMethod",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionModule",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionPackage",
+ new ProblemAttributes(CategorizedProblem.CAT_MODULE));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType",
+ new ProblemAttributes(CategorizedProblem.CAT_DEPRECATION));
+ expectedProblemAttributes.put("VarCannotBeMixedWithNonVarParams",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarIsNotAllowedHere", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarIsReserved", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarIsReservedInFuture",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarLocalCannotBeArray",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarLocalCannotBeArrayInitalizers",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("VarLocalCannotBeLambda", new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("VarLocalCannotBeMethodReference",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("VarLocalInitializedToNull",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("VarLocalInitializedToVoid",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("VarLocalMultipleDeclarators",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarLocalReferencesItself",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarLocalCannotBeArray",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarLocalWithoutInitizalier",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("VarargsElementTypeNotVisible",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("VarargsElementTypeNotVisibleForConstructor",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("VarargsConflict", new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("VariableTypeCannotBeVoid",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("VariableTypeCannotBeVoidArray", DEPRECATED);
+ expectedProblemAttributes.put("VoidMethodReturnsValue",
+ new ProblemAttributes(CategorizedProblem.CAT_MEMBER));
+ expectedProblemAttributes.put("WildcardConstructorInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("WildcardFieldAssignment",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("WildcardMethodInvocation",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("illFormedParameterizationOfFunctionalInterface",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("lambdaParameterTypeMismatched",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("lambdaSignatureMismatched",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalArrayOfUnionType",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("IllegalArrayTypeInIntersectionCast",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("ProblemNotAnalysed",
+ new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
+ expectedProblemAttributes.put("SwitchExpressionsIncompatibleResultExpressionTypes",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SwitchExpressionsEmptySwitchBlock",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("SwitchExpressionsNoResultExpression",
+ new ProblemAttributes(CategorizedProblem.CAT_TYPE));
+ expectedProblemAttributes.put("SwitchExpressionSwitchLabeledBlockCompletesNormally",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("SwitchExpressionLastStatementCompletesNormally",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("SwitchExpressionTrailingSwitchLabels",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("switchMixedCase",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("SwitchExpressionMissingDefaultCase",
+ new ProblemAttributes(CategorizedProblem.CAT_INTERNAL));
+ expectedProblemAttributes.put("SwitchExpressionNotBelow12",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("SwitchCaseLabelWithArrowNotBelow12",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("SwitchExpressionPreviewDisabled",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("SwitchCaseLabelWithArrowPreviewDisabled",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("PreviewFeatureDisabled",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("PreviewFeatureUsed",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ expectedProblemAttributes.put("PreviewFeatureNotSupported",
+ new ProblemAttributes(CategorizedProblem.CAT_SYNTAX));
+ StringBuffer failures = new StringBuffer();
+ StringBuffer correctResult = new StringBuffer(70000);
+ Field[] fields = (iProblemClass = IProblem.class).getFields();
+ Arrays.sort(fields, new Comparator() {
+ public int compare(Object o1, Object o2) {
+ Field field1 = (Field) o1;
+ Field field2 = (Field) o2;
+ return field1.getName().compareTo(field2.getName());
+ }
+ });
+ boolean watchInternalCategory = false, printHeader = true;
+ for (int i = 0, length = fields.length; i < length; i++) {
+ Field field = fields[i];
+ if (field.getType() == Integer.TYPE) {
+ int problemId = field.getInt(iProblemClass);
+ int maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
+ if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask) {
+ String name = field.getName();
+ ProblemAttributes expectedAttributes = (ProblemAttributes) expectedProblemAttributes.get(name);
+ if (expectedAttributes == null) {
+ failures.append("missing expected problem attributes for problem " + name + "\n");
+ int actualCategory = ProblemReporter.getProblemCategory(ProblemSeverities.Error, problemId);
+ correctResult.append("\t\texpectedProblemAttributes.put(\"" + name
+ + "\", new ProblemAttributes(CategorizedProblem." + categoryName(actualCategory)
+ + "));\n");
+ } else if (!expectedAttributes.deprecated) {
+ int actualCategory = ProblemReporter.getProblemCategory(ProblemSeverities.Error, problemId);
+ correctResult.append("\t\texpectedProblemAttributes.put(\"" + name
+ + "\", new ProblemAttributes(CategorizedProblem." + categoryName(actualCategory)
+ + "));\n");
+ if (expectedAttributes.category != actualCategory) {
+ failures.append("category mismatch for problem " + name + " (expected "
+ + categoryName(expectedAttributes.category) + ", got "
+ + categoryName(actualCategory) + ")\n");
+ }
+ if (watchInternalCategory && actualCategory == CategorizedProblem.CAT_INTERNAL) {
+ if (printHeader) {
+ printHeader = false;
+ System.err.println("CAT_INTERNAL for problems:");
+ }
+ System.err.println("\t" + name);
}
- System.err.println("\t" + name);
+ } else {
+ correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", DEPRECATED);\n");
}
- } else {
- correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", DEPRECATED);\n");
}
}
}
+ if (failures.length() > 0) {
+ System.out.println(correctResult);
+ System.out.println();
+ }
+ assertEquals(failures.toString(), 0, failures.length());
+ } catch (IllegalAccessException e) {
+ fail("could not access members");
}
- if (failures.length() > 0) {
- System.out.println(correctResult);
- System.out.println();
- }
- assertEquals(failures.toString(), 0, failures.length());
- }
- catch (IllegalAccessException e) {
- fail("could not access members");
}
-}
-private static Map categoryNames;
-private String categoryName(int category) {
- if (categoryNames == null) {
- categoryNames = new HashMap();
- Field[] fields = CategorizedProblem.class.getFields();
- for (int i = 0, length = fields.length; i < length; i++) {
- Field field = fields[i];
- if (field.getType() == Integer.TYPE) {
- String name = field.getName();
- if (name.startsWith("CAT_")) {
- try {
- categoryNames.put(Integer.valueOf(field.getInt(CategorizedProblem.class)), name);
- } catch (IllegalArgumentException e) {
- } catch (IllegalAccessException e) {
+
+ private static Map categoryNames;
+
+ private String categoryName(int category) {
+ if (categoryNames == null) {
+ categoryNames = new HashMap();
+ Field[] fields = CategorizedProblem.class.getFields();
+ for (int i = 0, length = fields.length; i < length; i++) {
+ Field field = fields[i];
+ if (field.getType() == Integer.TYPE) {
+ String name = field.getName();
+ if (name.startsWith("CAT_")) {
+ try {
+ categoryNames.put(Integer.valueOf(field.getInt(CategorizedProblem.class)), name);
+ } catch (IllegalArgumentException e) {
+ } catch (IllegalAccessException e) {
+ }
}
}
}
}
+ return (String) categoryNames.get(Integer.valueOf(category));
}
- return (String) categoryNames.get(Integer.valueOf(category));
-}
+
// compiler problems tuning
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=218603
-public void test012_compiler_problems_tuning() {
- try {
- class ProblemAttributes {
- boolean skip;
- String option;
- ProblemAttributes(String option) {
- this.option = option;
- }
- ProblemAttributes(boolean skip) {
- this.skip = skip;
- }
- }
- ProblemAttributes SKIP = new ProblemAttributes(true);
- Map expectedProblemAttributes = new HashMap();
- expectedProblemAttributes.put("AbstractMethodCannotBeOverridden", SKIP);
- expectedProblemAttributes.put("AbstractMethodInAbstractClass", SKIP);
- expectedProblemAttributes.put("AbstractMethodInEnum", SKIP);
- expectedProblemAttributes.put("AbstractMethodMustBeImplemented", SKIP);
- expectedProblemAttributes.put("AbstractMethodMustBeImplementedOverConcreteMethod", SKIP);
- expectedProblemAttributes.put("AbstractMethodsInConcreteClass", SKIP);
- expectedProblemAttributes.put("AbstractServiceImplementation", SKIP);
- expectedProblemAttributes.put("AmbiguousConstructor", SKIP);
- expectedProblemAttributes.put("AmbiguousConstructorInDefaultConstructor", SKIP);
- expectedProblemAttributes.put("AmbiguousConstructorInImplicitConstructorCall", SKIP);
- expectedProblemAttributes.put("AmbiguousField", SKIP);
- expectedProblemAttributes.put("AmbiguousMethod", SKIP);
- expectedProblemAttributes.put("AmbiguousType", SKIP);
- expectedProblemAttributes.put("AnnotationCannotOverrideMethod", SKIP);
- expectedProblemAttributes.put("AnnotationCircularity", SKIP);
- expectedProblemAttributes.put("AnnotationCircularitySelfReference", SKIP);
- expectedProblemAttributes.put("AnnotationFieldNeedConstantInitialization", SKIP);
- expectedProblemAttributes.put("AnnotationMembersCannotHaveParameters", SKIP);
- expectedProblemAttributes.put("AnnotationMembersCannotHaveTypeParameters", SKIP);
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveConstructor", SKIP);
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperclass", SKIP);
- expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperinterfaces", SKIP);
- expectedProblemAttributes.put("AnnotationTypeUsedAsSuperInterface", new ProblemAttributes(JavaCore.COMPILER_PB_ANNOTATION_SUPER_INTERFACE));
- expectedProblemAttributes.put("AnnotationValueMustBeAnEnumConstant", SKIP);
- expectedProblemAttributes.put("AnnotationValueMustBeAnnotation", SKIP);
- expectedProblemAttributes.put("AnnotationValueMustBeArrayInitializer", SKIP);
- expectedProblemAttributes.put("AnnotationValueMustBeClassLiteral", SKIP);
- expectedProblemAttributes.put("AnnotationValueMustBeConstant", SKIP);
- expectedProblemAttributes.put("AnonymousClassCannotExtendFinalClass", SKIP);
- expectedProblemAttributes.put("ApplicableMethodOverriddenByInapplicable", SKIP);
- expectedProblemAttributes.put("ArgumentHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
- expectedProblemAttributes.put("ArgumentHidingLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
- expectedProblemAttributes.put("ArgumentIsNeverUsed", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PARAMETER));
- expectedProblemAttributes.put("ArgumentTypeAmbiguous", SKIP);
- expectedProblemAttributes.put("ArgumentTypeCannotBeVoid", SKIP);
- expectedProblemAttributes.put("ArgumentTypeCannotBeVoidArray", SKIP);
- expectedProblemAttributes.put("ArgumentTypeInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("ArgumentTypeInternalNameProvided", SKIP);
- expectedProblemAttributes.put("ArgumentTypeNotFound", SKIP);
- expectedProblemAttributes.put("ArgumentTypeNotVisible", SKIP);
- expectedProblemAttributes.put("ArrayConstantsOnlyInArrayInitializers", SKIP);
- expectedProblemAttributes.put("ArrayReferencePotentialNullReference", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("ArrayReferenceRequired", SKIP);
- expectedProblemAttributes.put("AssignmentHasNoEffect", new ProblemAttributes(JavaCore.COMPILER_PB_NO_EFFECT_ASSIGNMENT));
- expectedProblemAttributes.put("AssignmentToMultiCatchParameter", SKIP);
- expectedProblemAttributes.put("AssignmentToResource", SKIP);
- expectedProblemAttributes.put("AutoManagedResourceNotBelow17", SKIP);
- expectedProblemAttributes.put("AutoManagedVariableResourceNotBelow9", SKIP);
- expectedProblemAttributes.put("BinaryLiteralNotBelow17", SKIP);
- expectedProblemAttributes.put("BodyForAbstractMethod", SKIP);
- expectedProblemAttributes.put("BodyForNativeMethod", SKIP);
- expectedProblemAttributes.put("BoundCannotBeArray", SKIP);
- expectedProblemAttributes.put("BoundHasConflictingArguments", SKIP);
- expectedProblemAttributes.put("BoundMustBeAnInterface", SKIP);
- expectedProblemAttributes.put("BoxingConversion", new ProblemAttributes(JavaCore.COMPILER_PB_AUTOBOXING));
- expectedProblemAttributes.put("BytecodeExceeds64KLimit", SKIP);
- expectedProblemAttributes.put("BytecodeExceeds64KLimitForClinit", SKIP);
- expectedProblemAttributes.put("BytecodeExceeds64KLimitForConstructor", SKIP);
- expectedProblemAttributes.put("CannotAllocateVoidArray", SKIP);
- expectedProblemAttributes.put("CannotDeclareEnumSpecialMethod", SKIP);
- expectedProblemAttributes.put("CannotDefineAnnotationInLocalType", SKIP);
- expectedProblemAttributes.put("CannotDefineDimensionExpressionsWithInit", SKIP);
- expectedProblemAttributes.put("CannotDefineEnumInLocalType", SKIP);
- expectedProblemAttributes.put("CannotDefineInterfaceInLocalType", SKIP);
- expectedProblemAttributes.put("CannotDefineStaticInitializerInLocalType", SKIP);
- expectedProblemAttributes.put("CannotExtendEnum", SKIP);
- expectedProblemAttributes.put("CannotHideAnInstanceMethodWithAStaticMethod", SKIP);
- expectedProblemAttributes.put("CannotImportPackage", SKIP);
- expectedProblemAttributes.put("CannotImplementIncompatibleNullness", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("CannotInferElidedTypes", SKIP);
- expectedProblemAttributes.put("CannotInferInvocationType", SKIP);
- expectedProblemAttributes.put("CannotInvokeSuperConstructorInEnum", SKIP);
- expectedProblemAttributes.put("CannotOverrideAStaticMethodWithAnInstanceMethod", SKIP);
- expectedProblemAttributes.put("CannotReadSource", SKIP);
- expectedProblemAttributes.put("CannotReturnInInitializer", SKIP);
- expectedProblemAttributes.put("CannotThrowNull", SKIP);
- expectedProblemAttributes.put("CannotThrowType", SKIP);
- expectedProblemAttributes.put("CannotUseDiamondWithAnonymousClasses", SKIP);
- expectedProblemAttributes.put("CannotUseDiamondWithExplicitTypeArguments", SKIP);
- expectedProblemAttributes.put("CannotUseSuperInCodeSnippet", SKIP);
- expectedProblemAttributes.put("ClassExtendFinalClass", SKIP);
- expectedProblemAttributes.put("CodeCannotBeReached", SKIP);
- expectedProblemAttributes.put("CodeSnippetMissingClass", SKIP);
- expectedProblemAttributes.put("CodeSnippetMissingMethod", SKIP);
- expectedProblemAttributes.put("ComparingIdentical", new ProblemAttributes(JavaCore.COMPILER_PB_COMPARING_IDENTICAL));
- expectedProblemAttributes.put("ConflictingImport", SKIP);
- expectedProblemAttributes.put("ConflictingNullAnnotations", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ConstructedArrayIncompatible", SKIP);
- expectedProblemAttributes.put("ConstructionTypeMismatch", SKIP);
- expectedProblemAttributes.put("ConflictingInheritedNullAnnotations", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ConstructorReferenceNotBelow18", SKIP);
- expectedProblemAttributes.put("ContainerAnnotationTypeHasNonDefaultMembers", SKIP);
- expectedProblemAttributes.put("ContainerAnnotationTypeHasShorterRetention", SKIP);
- expectedProblemAttributes.put("ContainerAnnotationTypeHasWrongValueType", SKIP);
- expectedProblemAttributes.put("ContainerAnnotationTypeMustHaveValue", SKIP);
- expectedProblemAttributes.put("ContradictoryNullAnnotations", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsOnBound", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsInferred", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ContradictoryNullAnnotationsInferredFunctionType", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ConstructorVarargsArgumentNeedCast", new ProblemAttributes(JavaCore.COMPILER_PB_VARARGS_ARGUMENT_NEED_CAST));
- expectedProblemAttributes.put("CorruptedSignature", SKIP);
- expectedProblemAttributes.put("CyclicModuleDependency", SKIP);
- expectedProblemAttributes.put("DanglingReference", SKIP);
- expectedProblemAttributes.put("DeadCode", new ProblemAttributes(JavaCore.COMPILER_PB_DEAD_CODE));
- expectedProblemAttributes.put("DefaultMethodNotBelow18", SKIP);
- expectedProblemAttributes.put("DefaultMethodOverridesObjectMethod", SKIP);
- expectedProblemAttributes.put("DereferencingNullableExpression", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("DiamondNotBelow17", SKIP);
- expectedProblemAttributes.put("DirectInvocationOfAbstractMethod", SKIP);
- expectedProblemAttributes.put("DisallowedTargetForAnnotation", SKIP);
- expectedProblemAttributes.put("DisallowedTargetForContainerAnnotationType", SKIP);
- expectedProblemAttributes.put("DiscouragedReference", new ProblemAttributes(JavaCore.COMPILER_PB_DISCOURAGED_REFERENCE));
- expectedProblemAttributes.put("DuplicateAnnotation", SKIP);
- expectedProblemAttributes.put("DuplicateAnnotationNotMarkedRepeatable", SKIP);
- expectedProblemAttributes.put("DuplicateAnnotationMember", SKIP);
- expectedProblemAttributes.put("DuplicateBlankFinalFieldInitialization", SKIP);
- expectedProblemAttributes.put("DuplicateBounds", SKIP);
- expectedProblemAttributes.put("DuplicateBoundInIntersectionCast", SKIP);
- expectedProblemAttributes.put("DuplicateCase", SKIP);
- expectedProblemAttributes.put("DuplicateDefaultCase", SKIP);
- expectedProblemAttributes.put("DuplicateExports", SKIP);
- expectedProblemAttributes.put("DuplicateField", SKIP);
- expectedProblemAttributes.put("DuplicateFinalLocalInitialization", SKIP);
- expectedProblemAttributes.put("DuplicateImport", SKIP);
- expectedProblemAttributes.put("DuplicateInheritedMethods", SKIP);
- expectedProblemAttributes.put("DuplicateInheritedDefaultMethods", SKIP);
- expectedProblemAttributes.put("DuplicateLabel", SKIP);
- expectedProblemAttributes.put("DuplicateMethod", SKIP);
- expectedProblemAttributes.put("DuplicateMethodErasure", SKIP);
- expectedProblemAttributes.put("DuplicateModifierForArgument", SKIP);
- expectedProblemAttributes.put("DuplicateModifierForField", SKIP);
- expectedProblemAttributes.put("DuplicateModifierForMethod", SKIP);
- expectedProblemAttributes.put("DuplicateModifierForType", SKIP);
- expectedProblemAttributes.put("DuplicateModifierForVariable", SKIP);
- expectedProblemAttributes.put("DuplicateModuleRef", SKIP);
- expectedProblemAttributes.put("DuplicateNestedType", SKIP);
- expectedProblemAttributes.put("DuplicateOpens", SKIP);
- expectedProblemAttributes.put("DuplicateParameterizedMethods", SKIP);
- expectedProblemAttributes.put("DuplicateRequires", SKIP);
- expectedProblemAttributes.put("DuplicateResource", SKIP);
- expectedProblemAttributes.put("DuplicateServices", SKIP);
- expectedProblemAttributes.put("DuplicateSuperInterface", SKIP);
- expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", SKIP);
- expectedProblemAttributes.put("DuplicateTypeVariable", SKIP);
- expectedProblemAttributes.put("DuplicateTypes", SKIP);
- expectedProblemAttributes.put("DuplicateUses", SKIP);
- expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT));
- expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", SKIP);
- expectedProblemAttributes.put("EndOfSource", SKIP);
- expectedProblemAttributes.put("EnumAbstractMethodMustBeImplemented", SKIP);
- expectedProblemAttributes.put("EnumConstantCannotDefineAbstractMethod", SKIP);
- expectedProblemAttributes.put("EnumConstantMustImplementAbstractMethod", SKIP);
- expectedProblemAttributes.put("EnumConstantsCannotBeSurroundedByParenthesis", SKIP);
- expectedProblemAttributes.put("EnumStaticFieldInInInitializerContext", SKIP);
- expectedProblemAttributes.put("EnumSwitchCannotTargetField", SKIP);
- expectedProblemAttributes.put("ExceptionParameterIsNeverUsed", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_EXCEPTION_PARAMETER));
- expectedProblemAttributes.put("ExceptionTypeAmbiguous", SKIP);
- expectedProblemAttributes.put("ExceptionTypeInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("ExceptionTypeInternalNameProvided", SKIP);
- expectedProblemAttributes.put("ExceptionTypeNotFound", SKIP);
- expectedProblemAttributes.put("ExceptionTypeNotVisible", SKIP);
- expectedProblemAttributes.put("ExplicitThisParameterNotInLambda", SKIP);
- expectedProblemAttributes.put("ExplicitThisParameterNotBelow18", SKIP);
- expectedProblemAttributes.put("ExplicitlyClosedAutoCloseable", new ProblemAttributes(JavaCore.COMPILER_PB_EXPLICITLY_CLOSED_AUTOCLOSEABLE));
- expectedProblemAttributes.put("ExportedPackageDoesNotExistOrIsEmpty", SKIP);
- expectedProblemAttributes.put("ExpressionShouldBeAVariable", SKIP);
- expectedProblemAttributes.put("ExternalProblemFixable", SKIP);
- expectedProblemAttributes.put("ExternalProblemNotFixable", SKIP);
- expectedProblemAttributes.put("ExplicitAnnotationTargetRequired", SKIP);
- expectedProblemAttributes.put("FallthroughCase", new ProblemAttributes(JavaCore.COMPILER_PB_FALLTHROUGH_CASE));
- expectedProblemAttributes.put("FieldComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("FieldHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_FIELD_HIDING));
- expectedProblemAttributes.put("FieldHidingLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_FIELD_HIDING));
- expectedProblemAttributes.put("FieldMissingDeprecatedAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
- expectedProblemAttributes.put("FieldMustBeFinal", SKIP);
- expectedProblemAttributes.put("FieldTypeAmbiguous", SKIP);
- expectedProblemAttributes.put("FieldTypeInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("FieldTypeInternalNameProvided", SKIP);
- expectedProblemAttributes.put("FieldTypeNotFound", SKIP);
- expectedProblemAttributes.put("FieldTypeNotVisible", SKIP);
- expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_FINAL_PARAMETER_BOUND));
- expectedProblemAttributes.put("FinalFieldAssignment", SKIP);
- expectedProblemAttributes.put("FinalMethodCannotBeOverridden", SKIP);
- expectedProblemAttributes.put("FinalOuterLocalAssignment", SKIP);
- expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(JavaCore.COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING));
- expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
- expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", SKIP);
- expectedProblemAttributes.put("GenericInferenceError", SKIP); // TODO should be removed via https://bugs.eclipse.org/404675
- expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", SKIP);
- expectedProblemAttributes.put("GenericTypeCannotExtendThrowable", SKIP);
- expectedProblemAttributes.put("HidingEnclosingType", SKIP);
- expectedProblemAttributes.put("HierarchyCircularity", SKIP);
- expectedProblemAttributes.put("HierarchyCircularitySelfReference", SKIP);
- expectedProblemAttributes.put("HierarchyHasProblems", SKIP);
- expectedProblemAttributes.put("IllegalAbstractModifierCombinationForMethod", SKIP);
- expectedProblemAttributes.put("IllegalStrictfpForAbstractInterfaceMethod", SKIP);
- expectedProblemAttributes.put("IllegalAccessFromTypeVariable", SKIP);
- expectedProblemAttributes.put("IllegalAnnotationForBaseType", SKIP);
- expectedProblemAttributes.put("IllegalCast", SKIP);
- expectedProblemAttributes.put("IllegalClassLiteralForTypeVariable", SKIP);
- expectedProblemAttributes.put("IllegalDeclarationOfThisParameter", SKIP);
- expectedProblemAttributes.put("IllegalDefaultModifierSpecification", SKIP);
- expectedProblemAttributes.put("IllegalDefinitionToNonNullParameter", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("IllegalDimension", SKIP);
- expectedProblemAttributes.put("IllegalEnclosingInstanceSpecification", SKIP);
- expectedProblemAttributes.put("IllegalExtendedDimensions", SKIP);
- expectedProblemAttributes.put("IllegalExtendedDimensionsForVarArgs", SKIP);
- expectedProblemAttributes.put("IllegalGenericArray", SKIP);
- expectedProblemAttributes.put("IllegalHexaLiteral", SKIP);
- expectedProblemAttributes.put("IllegalInstanceofParameterizedType", SKIP);
- expectedProblemAttributes.put("IllegalInstanceofTypeParameter", SKIP);
- expectedProblemAttributes.put("IllegalBasetypeInIntersectionCast", SKIP);
- expectedProblemAttributes.put("IllegalModifierCombinationFinalAbstractForClass", SKIP);
- expectedProblemAttributes.put("IllegalModifierCombinationFinalVolatileForField", SKIP);
- expectedProblemAttributes.put("IllegalModifierCombinationForInterfaceMethod", SKIP);
- expectedProblemAttributes.put("IllegalModifierCombinationForPrivateInterfaceMethod9", SKIP);
- expectedProblemAttributes.put("IllegalModifierForAnnotationField", SKIP);
- expectedProblemAttributes.put("IllegalModifierForAnnotationMemberType", SKIP);
- expectedProblemAttributes.put("IllegalModifierForAnnotationMethod", SKIP);
- expectedProblemAttributes.put("IllegalModifierForAnnotationType", SKIP);
- expectedProblemAttributes.put("IllegalModifierForArgument", SKIP);
- expectedProblemAttributes.put("IllegalModifierForClass", SKIP);
- expectedProblemAttributes.put("IllegalModifierForConstructor", SKIP);
- expectedProblemAttributes.put("IllegalModifierForEnum", SKIP);
- expectedProblemAttributes.put("IllegalModifierForEnumConstant", SKIP);
- expectedProblemAttributes.put("IllegalModifierForEnumConstructor", SKIP);
- expectedProblemAttributes.put("IllegalModifierForField", SKIP);
- expectedProblemAttributes.put("IllegalModifierForInterface", SKIP);
- expectedProblemAttributes.put("IllegalModifierForInterfaceField", SKIP);
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod", SKIP);
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod18", SKIP);
- expectedProblemAttributes.put("IllegalModifierForLocalClass", SKIP);
- expectedProblemAttributes.put("IllegalModifierForLocalEnum", SKIP);
- expectedProblemAttributes.put("IllegalModifierForMemberClass", SKIP);
- expectedProblemAttributes.put("IllegalModifierForMemberEnum", SKIP);
- expectedProblemAttributes.put("IllegalModifierForMemberInterface", SKIP);
- expectedProblemAttributes.put("IllegalModifierForMethod", SKIP);
- expectedProblemAttributes.put("IllegalModifierForModule", SKIP);
- expectedProblemAttributes.put("IllegalModifierForInterfaceMethod9", SKIP);
- expectedProblemAttributes.put("IllegalModifierForVariable", SKIP);
- expectedProblemAttributes.put("IllegalModifiersForElidedType", SKIP);
- expectedProblemAttributes.put("IllegalModifiers", SKIP);
- expectedProblemAttributes.put("IllegalParameterNullityRedefinition", SKIP);
- expectedProblemAttributes.put("IllegalPrimitiveOrArrayTypeForEnclosingInstance", SKIP);
- expectedProblemAttributes.put("IllegalQualifiedEnumConstantLabel", SKIP);
- expectedProblemAttributes.put("IllegalQualifiedParameterizedTypeAllocation", SKIP);
- expectedProblemAttributes.put("IllegalQualifierForExplicitThis", SKIP);
- expectedProblemAttributes.put("IllegalQualifierForExplicitThis2", SKIP);
- expectedProblemAttributes.put("IllegalRedefinitionOfTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("IllegalRedefinitionToNonNullParameter", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("IllegalReturnNullityRedefinition", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("IllegalReturnNullityRedefinitionFreeTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("IllegalStaticModifierForMemberType", SKIP);
- expectedProblemAttributes.put("IllegalTypeAnnotationsInStaticMemberAccess", SKIP);
- expectedProblemAttributes.put("IllegalTypeArgumentsInRawConstructorReference", SKIP);
- expectedProblemAttributes.put("IllegalTypeForExplicitThis", SKIP);
- expectedProblemAttributes.put("IllegalTypeVariableSuperReference", SKIP);
- expectedProblemAttributes.put("IllegalUnderscorePosition", SKIP);
- expectedProblemAttributes.put("IllegalUsageOfQualifiedTypeReference", SKIP);
- expectedProblemAttributes.put("IllegalUsageOfTypeAnnotations", SKIP);
- expectedProblemAttributes.put("IllegalVararg", SKIP);
- expectedProblemAttributes.put("IllegalVarargInLambda", SKIP);
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForField", SKIP);
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMemberType", SKIP);
- expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMethod", SKIP);
- expectedProblemAttributes.put("IllegalVisibilityModifierForInterfaceMemberType", SKIP);
- expectedProblemAttributes.put("ImplicitObjectBoundNoNullDefault", SKIP);
- expectedProblemAttributes.put("ImportAmbiguous", SKIP);
- expectedProblemAttributes.put("ImportInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("ImportInternalNameProvided", SKIP);
- expectedProblemAttributes.put("ImportNotFound", SKIP);
- expectedProblemAttributes.put("ImportNotVisible", SKIP);
- expectedProblemAttributes.put("IncompatibleExceptionInInheritedMethodThrowsClause", SKIP);
- expectedProblemAttributes.put("IncompatibleExceptionInThrowsClause", SKIP);
- expectedProblemAttributes.put("IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD));
- expectedProblemAttributes.put("IncompatibleReturnType", SKIP);
- expectedProblemAttributes.put("IncompatibleReturnTypeForNonInheritedInterfaceMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD));
- expectedProblemAttributes.put("IncompatibleTypesInConditionalOperator", SKIP);
- expectedProblemAttributes.put("IncompatibleTypesInEqualityOperator", SKIP);
- expectedProblemAttributes.put("IncompatibleTypesInForeach", SKIP);
- expectedProblemAttributes.put("IncompatibleLambdaParameterType", SKIP);
- expectedProblemAttributes.put("IncompatibleMethodReference", SKIP);
- expectedProblemAttributes.put("IncorrectArityForParameterizedConstructor", SKIP);
- expectedProblemAttributes.put("IncorrectArityForParameterizedMethod", SKIP);
- expectedProblemAttributes.put("IncorrectArityForParameterizedType", SKIP);
- expectedProblemAttributes.put("IncorrectEnclosingInstanceReference", SKIP);
- expectedProblemAttributes.put("IncorrectSwitchType", SKIP);
- expectedProblemAttributes.put("IncorrectSwitchType17", SKIP);
- expectedProblemAttributes.put("IndirectAccessToStaticField", new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
- expectedProblemAttributes.put("IndirectAccessToStaticMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
- expectedProblemAttributes.put("IndirectAccessToStaticType", new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
- expectedProblemAttributes.put("InheritedDefaultMethodConflictsWithOtherInherited", SKIP);
- expectedProblemAttributes.put("InheritedFieldHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("InheritedIncompatibleReturnType", SKIP);
- expectedProblemAttributes.put("InheritedMethodHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("InheritedMethodReducesVisibility", SKIP);
- expectedProblemAttributes.put("InheritedTypeHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("InitializerMustCompleteNormally", SKIP);
- expectedProblemAttributes.put("InstanceFieldDuringConstructorInvocation", SKIP);
- expectedProblemAttributes.put("InstanceMethodDuringConstructorInvocation", SKIP);
- expectedProblemAttributes.put("InterfaceAmbiguous", SKIP);
- expectedProblemAttributes.put("InterfaceCannotHaveConstructors", SKIP);
- expectedProblemAttributes.put("InterfaceCannotHaveInitializers", SKIP);
- expectedProblemAttributes.put("InterfaceInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("InterfaceInternalNameProvided", SKIP);
- expectedProblemAttributes.put("InterfaceNotFound", SKIP);
- expectedProblemAttributes.put("InterfaceNotFunctionalInterface", SKIP);
- expectedProblemAttributes.put("InterfaceNotVisible", SKIP);
- expectedProblemAttributes.put("InterfaceStaticMethodInvocationNotBelow18", SKIP);
- expectedProblemAttributes.put("InterfaceSuperInvocationNotBelow18", SKIP);
- expectedProblemAttributes.put("InternalTypeNameProvided", SKIP);
- expectedProblemAttributes.put("IntersectionCastNotBelow18", SKIP);
- expectedProblemAttributes.put("InvalidAnnotationMemberType", SKIP);
- expectedProblemAttributes.put("InvalidArrayConstructorReference", SKIP);
- expectedProblemAttributes.put("InvalidBinary", SKIP);
- expectedProblemAttributes.put("InvalidBreak", SKIP);
- expectedProblemAttributes.put("InvalidCatchBlockSequence", SKIP);
- expectedProblemAttributes.put("InvalidCharacterConstant", SKIP);
- expectedProblemAttributes.put("InvalidClassInstantiation", SKIP);
- expectedProblemAttributes.put("InvalidContinue", SKIP);
- expectedProblemAttributes.put("InvalidDigit", SKIP);
- expectedProblemAttributes.put("InvalidEncoding", SKIP);
- expectedProblemAttributes.put("InvalidEscape", SKIP);
- expectedProblemAttributes.put("InvalidExplicitConstructorCall", SKIP);
- expectedProblemAttributes.put("InvalidExpressionAsStatement", SKIP);
- expectedProblemAttributes.put("InvalidFileNameForPackageAnnotations", SKIP);
- expectedProblemAttributes.put("InvalidFloat", SKIP);
- expectedProblemAttributes.put("InvalidHexa", SKIP);
- expectedProblemAttributes.put("InvalidHighSurrogate", SKIP);
- expectedProblemAttributes.put("InvalidInput", SKIP);
- expectedProblemAttributes.put("InvalidLowSurrogate", SKIP);
- expectedProblemAttributes.put("InvalidLocationForModifiers", SKIP);
- expectedProblemAttributes.put("InvalidNullToSynchronized", SKIP);
- expectedProblemAttributes.put("InvalidOctal", SKIP);
- expectedProblemAttributes.put("InvalidOpensStatement", SKIP);
- expectedProblemAttributes.put("InvalidOperator", SKIP);
- expectedProblemAttributes.put("InvalidParameterizedExceptionType", SKIP);
- expectedProblemAttributes.put("InvalidParenthesizedExpression", SKIP);
- expectedProblemAttributes.put("InvalidServiceIntfType", SKIP);
- expectedProblemAttributes.put("InvalidServiceImplType", SKIP);
- expectedProblemAttributes.put("InvalidTypeArguments", SKIP);
- expectedProblemAttributes.put("InvalidTypeExpression", SKIP);
- expectedProblemAttributes.put("InvalidTypeForCollection", SKIP);
- expectedProblemAttributes.put("InvalidTypeForCollectionTarget14", SKIP);
- expectedProblemAttributes.put("InvalidTypeForStaticImport", SKIP);
- expectedProblemAttributes.put("InvalidTypeToSynchronized", SKIP);
- expectedProblemAttributes.put("InvalidTypeVariableExceptionType", SKIP);
- expectedProblemAttributes.put("InvalidUnaryExpression", SKIP);
- expectedProblemAttributes.put("InvalidUnicodeEscape", SKIP);
- expectedProblemAttributes.put("InvalidUnionTypeReferenceSequence", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfAnnotations", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfForeachStatements", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfReceiverAnnotations", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfStaticImports", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfTypeAnnotations", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfTypeArguments", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfTypeParameters", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfTypeParametersForAnnotationDeclaration", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfTypeParametersForEnumDeclaration", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfVarargs", SKIP);
- expectedProblemAttributes.put("InvalidUsageOfWildcard", SKIP);
- expectedProblemAttributes.put("InvalidVoidExpression", SKIP);
- expectedProblemAttributes.put("IsClassPathCorrect", SKIP);
- expectedProblemAttributes.put("JavadocAmbiguousConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousMethodReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocAmbiguousType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateParamName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateReturnTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocDuplicateThrowsClassName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocEmptyReturnTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocGenericConstructorTypeArgumentMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocGenericMethodTypeArgumentMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocHiddenReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedFieldHidesEnclosingName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedMethodHidesEnclosingName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInheritedNameHidesEnclosingTypeName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInternalTypeNameProvided", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidMemberTypeQualification", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamTagName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidParamTagTypeParameter", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeArgs", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeHref", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidSeeUrlReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidThrowsClass", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidThrowsClassName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocInvalidValueReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMalformedSeeReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMessagePrefix", SKIP);
- expectedProblemAttributes.put("JavadocMissing", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_COMMENTS));
- expectedProblemAttributes.put("JavadocMissingHashCharacter", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingIdentifier", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingParamName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingParamTag", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
- expectedProblemAttributes.put("JavadocMissingReturnTag", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
- expectedProblemAttributes.put("JavadocMissingSeeReference", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingTagDescription", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingThrowsClassName", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocMissingThrowsTag", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
- expectedProblemAttributes.put("JavadocNoMessageSendOnArrayType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNoMessageSendOnBaseType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNonGenericConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNonGenericMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNonStaticTypeFromStaticInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUndefinedType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUnexpectedTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUnexpectedText", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUnterminatedInlineTag", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
- expectedProblemAttributes.put("LambdaDescriptorMentionsUnmentionable", SKIP);
- expectedProblemAttributes.put("LambdaExpressionNotBelow18", SKIP);
- expectedProblemAttributes.put("LambdaRedeclaresArgument", SKIP);
- expectedProblemAttributes.put("LambdaRedeclaresLocal", SKIP);
- expectedProblemAttributes.put("LambdaShapeComputationError", SKIP);
- expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", SKIP);
- expectedProblemAttributes.put("LocalVariableCannotBeNull", SKIP);
- expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
- expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
- expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LOCAL));
- expectedProblemAttributes.put("LocalVariableMayBeNull", SKIP);
- expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(JavaCore.COMPILER_PB_HIDDEN_CATCH_BLOCK));
- expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(JavaCore.COMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME));
- expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD));
- expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_STATIC_ON_METHOD));
- expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
- expectedProblemAttributes.put("MethodMustOverride", SKIP);
- expectedProblemAttributes.put("MethodMustOverrideOrImplement", SKIP);
- expectedProblemAttributes.put("MethodNameClash", SKIP);
- expectedProblemAttributes.put("MethodNameClashHidden", SKIP);
- expectedProblemAttributes.put("MethodReducesVisibility", SKIP);
- expectedProblemAttributes.put("MethodReferenceNotBelow18", SKIP);
- expectedProblemAttributes.put("MethodReferenceSwingsBothWays", SKIP);
- expectedProblemAttributes.put("MethodRequiresBody", SKIP);
- expectedProblemAttributes.put("MethodReturnsVoid", SKIP);
- expectedProblemAttributes.put("MethodVarargsArgumentNeedCast", new ProblemAttributes(JavaCore.COMPILER_PB_VARARGS_ARGUMENT_NEED_CAST));
- expectedProblemAttributes.put("MisplacedTypeAnnotations", SKIP);
- expectedProblemAttributes.put("MissingArgumentsForParameterizedMemberType", SKIP);
- expectedProblemAttributes.put("MissingDefaultCase", new ProblemAttributes(JavaCore.COMPILER_PB_SWITCH_MISSING_DEFAULT_CASE));
- expectedProblemAttributes.put("MissingEnclosingInstance", SKIP);
- expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall", SKIP);
- expectedProblemAttributes.put("MissingEnumConstantCase", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH));
- expectedProblemAttributes.put("MissingEnumConstantCaseDespiteDefault", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH));
- expectedProblemAttributes.put("MissingEnumDefaultCase", new ProblemAttributes(JavaCore.COMPILER_PB_SWITCH_MISSING_DEFAULT_CASE));
- expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnPackage", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION));
- expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnType", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION));
- expectedProblemAttributes.put("MissingOverrideAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION));
- expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION));
- expectedProblemAttributes.put("MissingRequiresTransitiveForTypeInAPI", new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
- expectedProblemAttributes.put("MissingReturnType", SKIP);
- expectedProblemAttributes.put("MissingSemiColon", SKIP);
- expectedProblemAttributes.put("MissingSerialVersion", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SERIAL_VERSION));
- expectedProblemAttributes.put("MissingSynchronizedModifierInInheritedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD));
- expectedProblemAttributes.put("MissingTypeInConstructor", SKIP);
- expectedProblemAttributes.put("MissingTypeInLambda", SKIP);
- expectedProblemAttributes.put("MissingTypeInMethod", SKIP);
- expectedProblemAttributes.put("MissingValueForAnnotationMember", SKIP);
- expectedProblemAttributes.put("MultiCatchNotBelow17", SKIP);
- expectedProblemAttributes.put("MultipleFunctionalInterfaces", SKIP);
- expectedProblemAttributes.put("StaticInterfaceMethodNotBelow18", SKIP);
- expectedProblemAttributes.put("MustDefineEitherDimensionExpressionsOrInitializer", SKIP);
- expectedProblemAttributes.put("MustSpecifyPackage", SKIP);
- expectedProblemAttributes.put("NativeMethodsCannotBeStrictfp", SKIP);
- expectedProblemAttributes.put("NeedToEmulateConstructorAccess", new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
- expectedProblemAttributes.put("NeedToEmulateFieldReadAccess", new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
- expectedProblemAttributes.put("NeedToEmulateFieldWriteAccess", new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
- expectedProblemAttributes.put("NeedToEmulateMethodAccess", new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
- expectedProblemAttributes.put("NestedServiceImpl", SKIP);
- expectedProblemAttributes.put("NoAdditionalBoundAfterTypeVariable", SKIP);
- expectedProblemAttributes.put("NoFieldOnBaseType", SKIP);
- expectedProblemAttributes.put("NoGenericLambda", SKIP);
- expectedProblemAttributes.put("NoImplicitStringConversionForCharArrayExpression", new ProblemAttributes(JavaCore.COMPILER_PB_CHAR_ARRAY_IN_STRING_CONCATENATION));
- expectedProblemAttributes.put("NoMessageSendOnArrayType", SKIP);
- expectedProblemAttributes.put("NoMessageSendOnBaseType", SKIP);
- expectedProblemAttributes.put("NoSuperInInterfaceContext", SKIP);
- expectedProblemAttributes.put("NonBlankFinalLocalAssignment", SKIP);
- expectedProblemAttributes.put("NonConstantExpression", SKIP);
- expectedProblemAttributes.put("NonDenotableTypeArgumentForAnonymousDiamond", SKIP);
- expectedProblemAttributes.put("NonExternalizedStringLiteral", new ProblemAttributes(JavaCore.COMPILER_PB_NON_NLS_STRING_LITERAL));
- expectedProblemAttributes.put("NonGenericConstructor", SKIP);
- expectedProblemAttributes.put("NonGenericMethod", SKIP);
- expectedProblemAttributes.put("NonGenericType", SKIP);
- expectedProblemAttributes.put("NonNullDefaultDetailIsNotEvaluated", SKIP);
- expectedProblemAttributes.put("NonNullExpressionComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NonNullSpecdFieldComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NonNullLocalVariableComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NonNullMessageSendComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NonNullTypeVariableFromLegacyMethod", new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_TYPEVAR_FROM_LEGACY_INVOCATION));
- expectedProblemAttributes.put("NonNullMethodTypeVariableFromLegacyMethod", new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_TYPEVAR_FROM_LEGACY_INVOCATION));
- expectedProblemAttributes.put("NonPublicTypeInAPI", new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
- expectedProblemAttributes.put("NonStaticAccessToStaticField", new ProblemAttributes(JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER));
- expectedProblemAttributes.put("NonStaticAccessToStaticMethod", new ProblemAttributes(JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER));
- expectedProblemAttributes.put("NonStaticContextForEnumMemberType", SKIP);
- expectedProblemAttributes.put("NonStaticFieldFromStaticInvocation", SKIP);
- expectedProblemAttributes.put("NonStaticOrAlienTypeReceiver", SKIP);
- expectedProblemAttributes.put("NonStaticTypeFromStaticInvocation", SKIP);
- expectedProblemAttributes.put("NotAnnotationType", SKIP);
- expectedProblemAttributes.put("NotAccessibleConstructor", SKIP);
- expectedProblemAttributes.put("NotAccessibleField", SKIP);
- expectedProblemAttributes.put("NotAccessibleMethod", SKIP);
- expectedProblemAttributes.put("NotAccessibleType", SKIP);
- expectedProblemAttributes.put("NotAccessiblePackage", SKIP);
- expectedProblemAttributes.put("NotExportedTypeInAPI", new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
- expectedProblemAttributes.put("ConflictingPackageFromModules", SKIP);
- expectedProblemAttributes.put("ConflictingPackageFromOtherModules", SKIP);
- expectedProblemAttributes.put("NotVisibleConstructor", SKIP);
- expectedProblemAttributes.put("NotVisibleConstructorInDefaultConstructor", SKIP);
- expectedProblemAttributes.put("NotVisibleConstructorInImplicitConstructorCall", SKIP);
- expectedProblemAttributes.put("NotVisibleField", SKIP);
- expectedProblemAttributes.put("NotVisibleMethod", SKIP);
- expectedProblemAttributes.put("NotVisibleType", SKIP);
- expectedProblemAttributes.put("NullableFieldReference", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("NullAnnotationAtQualifyingType", SKIP);
- expectedProblemAttributes.put("NullAnnotationUnsupportedLocation", SKIP);
- expectedProblemAttributes.put("NullAnnotationUnsupportedLocationAtType", SKIP);
- expectedProblemAttributes.put("NullityMismatchAgainstFreeTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
- expectedProblemAttributes.put("NullityMismatchingTypeAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("NullityMismatchingTypeAnnotationSuperHint", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("NullityMismatchTypeArgument", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetail", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetailSuperHint", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("NullExpressionReference", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
- expectedProblemAttributes.put("NullLocalVariableComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NullLocalVariableInstanceofYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("NullLocalVariableReference", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
- expectedProblemAttributes.put("NullNotCompatibleToFreeTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
- expectedProblemAttributes.put("NullSourceString", SKIP);
- expectedProblemAttributes.put("NullUnboxing", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
- expectedProblemAttributes.put("NumericValueOutOfRange", SKIP);
- expectedProblemAttributes.put("ObjectCannotBeGeneric", SKIP);
- expectedProblemAttributes.put("ObjectCannotHaveSuperTypes", SKIP);
- expectedProblemAttributes.put("ObjectHasNoSuperclass", SKIP);
- expectedProblemAttributes.put("ObjectMustBeClass", SKIP);
- expectedProblemAttributes.put("OuterLocalMustBeEffectivelyFinal", SKIP);
- expectedProblemAttributes.put("OuterLocalMustBeFinal", SKIP);
- expectedProblemAttributes.put("OverridingDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("OverridingDeprecatedSinceVersionMethod", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("OverridingTerminallyDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("OverridingTerminallyDeprecatedSinceVersionMethod", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("OverridingMethodWithoutSuperInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_OVERRIDING_METHOD_WITHOUT_SUPER_INVOCATION));
- expectedProblemAttributes.put("OverridingNonVisibleMethod", new ProblemAttributes(JavaCore.COMPILER_PB_OVERRIDING_PACKAGE_DEFAULT_METHOD));
- expectedProblemAttributes.put("PackageCollidesWithType", SKIP);
- expectedProblemAttributes.put("PackageDoesNotExistOrIsEmpty", SKIP);
- expectedProblemAttributes.put("PackageIsNotExpectedPackage", SKIP);
- expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_PARAMETER_ASSIGNMENT));
- expectedProblemAttributes.put("ParameterLackingNonNullAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED));
- expectedProblemAttributes.put("ParameterLackingNullableAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ParameterMismatch", SKIP);
- expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", SKIP);
- expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", SKIP);
- expectedProblemAttributes.put("ParsingError", SKIP);
- expectedProblemAttributes.put("ParsingErrorDeleteToken", SKIP);
- expectedProblemAttributes.put("ParsingErrorDeleteTokens", SKIP);
- expectedProblemAttributes.put("ParsingErrorInsertToComplete", SKIP);
- expectedProblemAttributes.put("ParsingErrorInsertToCompletePhrase", SKIP);
- expectedProblemAttributes.put("ParsingErrorInsertToCompleteScope", SKIP);
- expectedProblemAttributes.put("ParsingErrorInsertTokenAfter", SKIP);
- expectedProblemAttributes.put("ParsingErrorInsertTokenBefore", SKIP);
- expectedProblemAttributes.put("ParsingErrorInvalidToken", SKIP);
- expectedProblemAttributes.put("ParsingErrorMergeTokens", SKIP);
- expectedProblemAttributes.put("ParsingErrorMisplacedConstruct", SKIP);
- expectedProblemAttributes.put("ParsingErrorNoSuggestion", SKIP);
- expectedProblemAttributes.put("ParsingErrorNoSuggestionForTokens", SKIP);
- expectedProblemAttributes.put("ParsingErrorOnKeyword", SKIP);
- expectedProblemAttributes.put("ParsingErrorOnKeywordNoSuggestion", SKIP);
- expectedProblemAttributes.put("ParsingErrorReplaceTokens", SKIP);
- expectedProblemAttributes.put("ParsingErrorUnexpectedEOF", SKIP);
- expectedProblemAttributes.put("PolymorphicMethodNotBelow17", SKIP);
- expectedProblemAttributes.put("PossibleAccidentalBooleanAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_POSSIBLE_ACCIDENTAL_BOOLEAN_ASSIGNMENT));
- expectedProblemAttributes.put("PotentialHeapPollutionFromVararg", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("PotentiallyUnclosedCloseable", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE));
- expectedProblemAttributes.put("PotentiallyUnclosedCloseableAtExit", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE));
- expectedProblemAttributes.put("PotentialNullExpressionReference", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("PotentialNullLocalVariableReference", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("PotentialNullUnboxing", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("PotentialNullMessageSendReference", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
- expectedProblemAttributes.put("ProviderMethodOrConstructorRequiredForServiceImpl", SKIP);
- expectedProblemAttributes.put("PublicClassMustMatchFileName", SKIP);
- expectedProblemAttributes.put("RawMemberTypeCannotBeParameterized", SKIP);
- expectedProblemAttributes.put("RawTypeReference", new ProblemAttributes(JavaCore.COMPILER_PB_RAW_TYPE_REFERENCE));
- expectedProblemAttributes.put("RecursiveConstructorInvocation", SKIP);
- expectedProblemAttributes.put("RedefinedArgument", SKIP);
- expectedProblemAttributes.put("RedefinedLocal", SKIP);
- expectedProblemAttributes.put("RedundantSpecificationOfTypeArguments", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_TYPE_ARGUMENTS));
- expectedProblemAttributes.put("RedundantLocalVariableNullAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullCheckAgainstNonNullType", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnField", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullExpression", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullSpecdField", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnNonNullMessageSend", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnNullLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullCheckOnSpecdNonNullLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationModule", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationPackage", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationType", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationMethod", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationLocal", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantNullDefaultAnnotationField", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
- expectedProblemAttributes.put("RedundantSuperinterface", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE));
- expectedProblemAttributes.put("ReferenceExpressionParameterNullityMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ReferenceExpressionParameterNullityUnchecked", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("ReferenceExpressionReturnNullRedef", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ReferenceExpressionReturnNullRedefUnchecked", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("ReferenceToForwardField", SKIP);
- expectedProblemAttributes.put("ReferenceToForwardTypeVariable", SKIP);
- expectedProblemAttributes.put("RepeatableAnnotationTypeIsDocumented", SKIP);
- expectedProblemAttributes.put("RepeatableAnnotationTypeIsInherited", SKIP);
- expectedProblemAttributes.put("RepeatableAnnotationTypeTargetMismatch", SKIP);
- expectedProblemAttributes.put("RepeatableAnnotationWithRepeatingContainerAnnotation", SKIP);
- expectedProblemAttributes.put("RepeatedAnnotationWithContainerAnnotation", SKIP);
- expectedProblemAttributes.put("RequiredNonNullButProvidedFreeTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
- expectedProblemAttributes.put("RequiredNonNullButProvidedNull", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("RequiredNonNullButProvidedPotentialNull", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT));
- expectedProblemAttributes.put("RequiredNonNullButProvidedUnknown", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("RequiredNonNullButProvidedSpecdNullable", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
- expectedProblemAttributes.put("ResourceHasToImplementAutoCloseable", SKIP);
- expectedProblemAttributes.put("ReturnTypeAmbiguous", SKIP);
- expectedProblemAttributes.put("ReturnTypeCannotBeVoidArray", SKIP);
- expectedProblemAttributes.put("ReturnTypeInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("ReturnTypeInternalNameProvided", SKIP);
- expectedProblemAttributes.put("ReturnTypeMismatch", SKIP);
- expectedProblemAttributes.put("ReturnTypeNotFound", SKIP);
- expectedProblemAttributes.put("ReturnTypeNotVisible", SKIP);
- expectedProblemAttributes.put("SafeVarargsOnFixedArityMethod", SKIP);
- expectedProblemAttributes.put("SafeVarargsOnNonFinalInstanceMethod", SKIP);
- expectedProblemAttributes.put("ServiceImplDefaultConstructorNotPublic", SKIP);
- expectedProblemAttributes.put("ServiceImplNotDefinedByModule", SKIP);
- expectedProblemAttributes.put("ShouldImplementHashcode", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_HASHCODE_METHOD));
- expectedProblemAttributes.put("ShouldReturnValue", SKIP);
- expectedProblemAttributes.put("ShouldReturnValueHintMissingDefault", SKIP);
- expectedProblemAttributes.put("SpecdNonNullLocalVariableComparisonYieldsFalse", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
- expectedProblemAttributes.put("StaticInheritedMethodConflicts", SKIP);
- expectedProblemAttributes.put("StaticMemberOfParameterizedType", SKIP);
- expectedProblemAttributes.put("StaticMethodRequested", SKIP);
- expectedProblemAttributes.put("StaticMethodShouldBeAccessedStatically", SKIP);
- expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", SKIP);
- expectedProblemAttributes.put("SuperAccessCannotBypassDirectSuper", SKIP);
- expectedProblemAttributes.put("SuperCallCannotBypassOverride", SKIP);
- expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", SKIP);
- expectedProblemAttributes.put("SuperInterfacesCollide", SKIP);
- expectedProblemAttributes.put("SuperTypeUsingWildcard", SKIP);
- expectedProblemAttributes.put("SuperclassAmbiguous", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_HASHCODE_METHOD));
- expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", SKIP);
- expectedProblemAttributes.put("SuperclassInternalNameProvided", SKIP);
- expectedProblemAttributes.put("SuperclassMustBeAClass", SKIP);
- expectedProblemAttributes.put("SuperclassNotFound", SKIP);
- expectedProblemAttributes.put("SuperclassNotVisible", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE));
- expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT));
- expectedProblemAttributes.put("SwitchOnEnumNotBelow15", SKIP);
- expectedProblemAttributes.put("SwitchOnStringsNotBelow17", SKIP);
- expectedProblemAttributes.put("TargetTypeNotAFunctionalInterface", SKIP);
- expectedProblemAttributes.put("Task", SKIP);
- expectedProblemAttributes.put("ThisInStaticContext", SKIP);
- expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", SKIP);
- expectedProblemAttributes.put("ToleratedMisplacedTypeAnnotations", SKIP);
- expectedProblemAttributes.put("TooManyArgumentSlots", SKIP);
- expectedProblemAttributes.put("TooManyArrayDimensions", SKIP);
- expectedProblemAttributes.put("TooManyBytesForStringConstant", SKIP);
- expectedProblemAttributes.put("TooManyConstantsInConstantPool", SKIP);
- expectedProblemAttributes.put("TooManyFields", SKIP);
- expectedProblemAttributes.put("TooManyLocalVariableSlots", SKIP);
- expectedProblemAttributes.put("TooManyMethods", SKIP);
- expectedProblemAttributes.put("TooManyParametersForSyntheticMethod", SKIP);
- expectedProblemAttributes.put("TooManySyntheticArgumentSlots", SKIP);
- expectedProblemAttributes.put("TypeAnnotationAtQualifiedName", SKIP);
- expectedProblemAttributes.put("TypeArgumentMismatch", SKIP);
- expectedProblemAttributes.put("TypeArgumentsForRawGenericConstructor", SKIP);
- expectedProblemAttributes.put("TypeArgumentsForRawGenericMethod", SKIP);
- expectedProblemAttributes.put("TypeCollidesWithPackage", SKIP);
- expectedProblemAttributes.put("TypeHidingType", new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
- expectedProblemAttributes.put("TypeHidingTypeParameterFromMethod", new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
- expectedProblemAttributes.put("TypeHidingTypeParameterFromType", new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
- expectedProblemAttributes.put("TypeMismatch", SKIP);
- expectedProblemAttributes.put("TypeMissingDeprecatedAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
- expectedProblemAttributes.put("TypeParameterHidingType", new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
- expectedProblemAttributes.put("UnboxingConversion", new ProblemAttributes(JavaCore.COMPILER_PB_AUTOBOXING));
- expectedProblemAttributes.put("UncheckedAccessOfValueOfFreeTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
- expectedProblemAttributes.put("UnclosedCloseable", new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE));
- expectedProblemAttributes.put("UnclosedCloseableAtExit", new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE));
- expectedProblemAttributes.put("UndefinedAnnotationMember", SKIP);
- expectedProblemAttributes.put("UndefinedConstructor", SKIP);
- expectedProblemAttributes.put("UndefinedConstructorInDefaultConstructor", SKIP);
- expectedProblemAttributes.put("UndefinedConstructorInImplicitConstructorCall", SKIP);
- expectedProblemAttributes.put("UndefinedField", SKIP);
- expectedProblemAttributes.put("UndefinedLabel", SKIP);
- expectedProblemAttributes.put("UndefinedMethod", SKIP);
- expectedProblemAttributes.put("UndefinedModule", SKIP);
- expectedProblemAttributes.put("UndefinedName", SKIP);
- expectedProblemAttributes.put("UndefinedType", SKIP);
- expectedProblemAttributes.put("UndefinedTypeVariable", SKIP);
- expectedProblemAttributes.put("UnderscoresInLiteralsNotBelow17", SKIP);
- expectedProblemAttributes.put("UndocumentedEmptyBlock", new ProblemAttributes(JavaCore.COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK));
- expectedProblemAttributes.put("UnexpectedStaticModifierForField", SKIP);
- expectedProblemAttributes.put("UnexpectedStaticModifierForMethod", SKIP);
- expectedProblemAttributes.put("UnhandledException", SKIP);
- expectedProblemAttributes.put("UnhandledExceptionInDefaultConstructor", SKIP);
- expectedProblemAttributes.put("UnhandledExceptionInImplicitConstructorCall", SKIP);
- expectedProblemAttributes.put("UnhandledExceptionOnAutoClose", SKIP);
- expectedProblemAttributes.put("UnhandledWarningToken", new ProblemAttributes(JavaCore.COMPILER_PB_UNHANDLED_WARNING_TOKEN));
- expectedProblemAttributes.put("UninitializedBlankFinalField", SKIP);
- expectedProblemAttributes.put("UninitializedBlankFinalFieldHintMissingDefault", SKIP);
- expectedProblemAttributes.put("UninitializedFreeTypeVariableField", SKIP);
- expectedProblemAttributes.put("UninitializedFreeTypeVariableFieldHintMissingDefault", SKIP);
- expectedProblemAttributes.put("UninitializedLocalVariable", SKIP);
- expectedProblemAttributes.put("UninitializedLocalVariableHintMissingDefault", SKIP);
- expectedProblemAttributes.put("UninitializedNonNullField", SKIP);
- expectedProblemAttributes.put("UninitializedNonNullFieldHintMissingDefault", SKIP);
- expectedProblemAttributes.put("UninternedIdentityComparison", SKIP);
- expectedProblemAttributes.put("UnlikelyCollectionMethodArgumentType", new ProblemAttributes(JavaCore.COMPILER_PB_UNLIKELY_COLLECTION_METHOD_ARGUMENT_TYPE));
- expectedProblemAttributes.put("UnlikelyEqualsArgumentType", new ProblemAttributes(JavaCore.COMPILER_PB_UNLIKELY_EQUALS_ARGUMENT_TYPE));
- expectedProblemAttributes.put("UnmatchedBracket", SKIP);
- expectedProblemAttributes.put("UnnamedPackageInNamedModule", SKIP);
- expectedProblemAttributes.put("UnnecessaryArgumentCast", SKIP);
- expectedProblemAttributes.put("UnnecessaryCast", new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_TYPE_CHECK));
- expectedProblemAttributes.put("UnnecessaryElse", new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_ELSE));
- expectedProblemAttributes.put("UnnecessaryInstanceof", new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_TYPE_CHECK));
- expectedProblemAttributes.put("UnnecessaryNLSTag", new ProblemAttributes(JavaCore.COMPILER_PB_NON_NLS_STRING_LITERAL));
- expectedProblemAttributes.put("UnqualifiedFieldAccess", new ProblemAttributes(JavaCore.COMPILER_PB_UNQUALIFIED_FIELD_ACCESS));
- expectedProblemAttributes.put("UnreachableCatch", SKIP);
- expectedProblemAttributes.put("UnresolvedVariable", SKIP);
- expectedProblemAttributes.put("UnsafeElementTypeConversion", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeGenericArrayForVarargs", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeGenericCast", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeNullnessCast", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
- expectedProblemAttributes.put("UnsafeRawConstructorInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeRawFieldAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeRawGenericConstructorInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeRawGenericMethodInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeRawMethodInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeReturnTypeOverride", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnsafeTypeConversion", new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
- expectedProblemAttributes.put("UnstableAutoModuleName", new ProblemAttributes(JavaCore.COMPILER_PB_UNSTABLE_AUTO_MODULE_NAME));
- expectedProblemAttributes.put("UnterminatedComment", SKIP);
- expectedProblemAttributes.put("UnterminatedString", SKIP);
- expectedProblemAttributes.put("UnusedConstructorDeclaredThrownException", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION));
- expectedProblemAttributes.put("UnusedImport", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_IMPORT));
- expectedProblemAttributes.put("UnusedLabel", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LABEL));
- expectedProblemAttributes.put("UnusedMethodDeclaredThrownException", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION));
- expectedProblemAttributes.put("UnusedObjectAllocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_OBJECT_ALLOCATION));
- expectedProblemAttributes.put("UnusedPrivateConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
- expectedProblemAttributes.put("UnusedPrivateField", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
- expectedProblemAttributes.put("UnusedPrivateMethod", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
- expectedProblemAttributes.put("UnusedPrivateType", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
- expectedProblemAttributes.put("UnusedTypeArgumentsForConstructorInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_ARGUMENTS_FOR_METHOD_INVOCATION));
- expectedProblemAttributes.put("UnusedTypeParameter", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_PARAMETER));
- expectedProblemAttributes.put("UnusedTypeArgumentsForMethodInvocation", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_ARGUMENTS_FOR_METHOD_INVOCATION));
- expectedProblemAttributes.put("UnusedWarningToken", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_WARNING_TOKEN));
- expectedProblemAttributes.put("UseAssertAsAnIdentifier", new ProblemAttributes(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER));
- expectedProblemAttributes.put("UseEnumAsAnIdentifier", new ProblemAttributes(JavaCore.COMPILER_PB_ENUM_IDENTIFIER));
- expectedProblemAttributes.put("IllegalUseOfUnderscoreAsAnIdentifier", SKIP);
- expectedProblemAttributes.put("UsingDeprecatedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedField", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedModule", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedPackage", SKIP);
- expectedProblemAttributes.put("UsingDeprecatedType", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionField", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionMethod", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionModule", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionPackage", SKIP);
- expectedProblemAttributes.put("UsingDeprecatedSinceVersionType", new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedField", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedModule", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedPackage", SKIP);
- expectedProblemAttributes.put("UsingTerminallyDeprecatedType", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionField", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionMethod", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionModule", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionPackage", SKIP);
- expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType", new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
- expectedProblemAttributes.put("VarargsConflict", SKIP);
- expectedProblemAttributes.put("VarargsElementTypeNotVisible", SKIP);
- expectedProblemAttributes.put("VarargsElementTypeNotVisibleForConstructor", SKIP);
- expectedProblemAttributes.put("VariableTypeCannotBeVoid", SKIP);
- expectedProblemAttributes.put("VariableTypeCannotBeVoidArray", SKIP);
- expectedProblemAttributes.put("VoidMethodReturnsValue", SKIP);
- expectedProblemAttributes.put("WildcardConstructorInvocation", SKIP);
- expectedProblemAttributes.put("WildcardFieldAssignment", SKIP);
- expectedProblemAttributes.put("WildcardMethodInvocation", SKIP);
- expectedProblemAttributes.put("illFormedParameterizationOfFunctionalInterface", SKIP);
- expectedProblemAttributes.put("lambdaParameterTypeMismatched", SKIP);
- expectedProblemAttributes.put("lambdaSignatureMismatched", SKIP);
- expectedProblemAttributes.put("DisallowedExplicitThisParameter", SKIP);
- expectedProblemAttributes.put("IllegalArrayOfUnionType", SKIP);
- expectedProblemAttributes.put("IllegalArrayTypeInIntersectionCast", SKIP);
- expectedProblemAttributes.put("ProblemNotAnalysed", SKIP);
- expectedProblemAttributes.put("VarCannotBeMixedWithNonVarParams", SKIP);
- expectedProblemAttributes.put("VarIsNotAllowedHere", SKIP);
- expectedProblemAttributes.put("VarIsReserved", SKIP);
- expectedProblemAttributes.put("VarIsReservedInFuture", SKIP);
- expectedProblemAttributes.put("VarLocalCannotBeArray", SKIP);
- expectedProblemAttributes.put("VarLocalCannotBeArrayInitalizers", SKIP);
- expectedProblemAttributes.put("VarLocalCannotBeLambda", SKIP);
- expectedProblemAttributes.put("VarLocalCannotBeMethodReference", SKIP);
- expectedProblemAttributes.put("VarLocalInitializedToNull", SKIP);
- expectedProblemAttributes.put("VarLocalInitializedToVoid", SKIP);
- expectedProblemAttributes.put("VarLocalMultipleDeclarators", SKIP);
- expectedProblemAttributes.put("VarLocalReferencesItself", SKIP);
- expectedProblemAttributes.put("VarLocalTooManyBrackets", SKIP);
- expectedProblemAttributes.put("VarLocalWithoutInitizalier", SKIP);
- Map constantNamesIndex = new HashMap();
- Field[] fields = JavaCore.class.getFields();
- for (int i = 0, length = fields.length; i < length; i++) {
- Field field = fields[i];
- String fieldName;
- if (field.getType() == String.class && (fieldName = field.getName()).startsWith("COMPILER_PB_")) {
- constantNamesIndex.put(field.get(null), fieldName);
+ public void test012_compiler_problems_tuning() {
+ try {
+ class ProblemAttributes {
+ boolean skip;
+ String option;
+
+ ProblemAttributes(String option) {
+ this.option = option;
+ }
+
+ ProblemAttributes(boolean skip) {
+ this.skip = skip;
+ }
}
- }
- fields = IProblem.class.getFields();
- StringBuffer failures = new StringBuffer();
- StringBuffer correctResult = new StringBuffer(70000);
- Arrays.sort(fields, new Comparator() {
- public int compare(Object o1, Object o2) {
- Field field1 = (Field) o1;
- Field field2 = (Field) o2;
- return field1.getName().compareTo(field2.getName());
+ ProblemAttributes SKIP = new ProblemAttributes(true);
+ Map expectedProblemAttributes = new HashMap();
+ expectedProblemAttributes.put("AbstractMethodCannotBeOverridden", SKIP);
+ expectedProblemAttributes.put("AbstractMethodInAbstractClass", SKIP);
+ expectedProblemAttributes.put("AbstractMethodInEnum", SKIP);
+ expectedProblemAttributes.put("AbstractMethodMustBeImplemented", SKIP);
+ expectedProblemAttributes.put("AbstractMethodMustBeImplementedOverConcreteMethod", SKIP);
+ expectedProblemAttributes.put("AbstractMethodsInConcreteClass", SKIP);
+ expectedProblemAttributes.put("AbstractServiceImplementation", SKIP);
+ expectedProblemAttributes.put("AmbiguousConstructor", SKIP);
+ expectedProblemAttributes.put("AmbiguousConstructorInDefaultConstructor", SKIP);
+ expectedProblemAttributes.put("AmbiguousConstructorInImplicitConstructorCall", SKIP);
+ expectedProblemAttributes.put("AmbiguousField", SKIP);
+ expectedProblemAttributes.put("AmbiguousMethod", SKIP);
+ expectedProblemAttributes.put("AmbiguousType", SKIP);
+ expectedProblemAttributes.put("AnnotationCannotOverrideMethod", SKIP);
+ expectedProblemAttributes.put("AnnotationCircularity", SKIP);
+ expectedProblemAttributes.put("AnnotationCircularitySelfReference", SKIP);
+ expectedProblemAttributes.put("AnnotationFieldNeedConstantInitialization", SKIP);
+ expectedProblemAttributes.put("AnnotationMembersCannotHaveParameters", SKIP);
+ expectedProblemAttributes.put("AnnotationMembersCannotHaveTypeParameters", SKIP);
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveConstructor", SKIP);
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperclass", SKIP);
+ expectedProblemAttributes.put("AnnotationTypeDeclarationCannotHaveSuperinterfaces", SKIP);
+ expectedProblemAttributes.put("AnnotationTypeUsedAsSuperInterface",
+ new ProblemAttributes(JavaCore.COMPILER_PB_ANNOTATION_SUPER_INTERFACE));
+ expectedProblemAttributes.put("AnnotationValueMustBeAnEnumConstant", SKIP);
+ expectedProblemAttributes.put("AnnotationValueMustBeAnnotation", SKIP);
+ expectedProblemAttributes.put("AnnotationValueMustBeArrayInitializer", SKIP);
+ expectedProblemAttributes.put("AnnotationValueMustBeClassLiteral", SKIP);
+ expectedProblemAttributes.put("AnnotationValueMustBeConstant", SKIP);
+ expectedProblemAttributes.put("AnonymousClassCannotExtendFinalClass", SKIP);
+ expectedProblemAttributes.put("ApplicableMethodOverriddenByInapplicable", SKIP);
+ expectedProblemAttributes.put("ArgumentHidingField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
+ expectedProblemAttributes.put("ArgumentHidingLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
+ expectedProblemAttributes.put("ArgumentIsNeverUsed",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PARAMETER));
+ expectedProblemAttributes.put("ArgumentTypeAmbiguous", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeCannotBeVoid", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeCannotBeVoidArray", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeNotFound", SKIP);
+ expectedProblemAttributes.put("ArgumentTypeNotVisible", SKIP);
+ expectedProblemAttributes.put("ArrayConstantsOnlyInArrayInitializers", SKIP);
+ expectedProblemAttributes.put("ArrayReferencePotentialNullReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("ArrayReferenceRequired", SKIP);
+ expectedProblemAttributes.put("AssignmentHasNoEffect",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NO_EFFECT_ASSIGNMENT));
+ expectedProblemAttributes.put("AssignmentToMultiCatchParameter", SKIP);
+ expectedProblemAttributes.put("AssignmentToResource", SKIP);
+ expectedProblemAttributes.put("AutoManagedResourceNotBelow17", SKIP);
+ expectedProblemAttributes.put("AutoManagedVariableResourceNotBelow9", SKIP);
+ expectedProblemAttributes.put("BinaryLiteralNotBelow17", SKIP);
+ expectedProblemAttributes.put("BodyForAbstractMethod", SKIP);
+ expectedProblemAttributes.put("BodyForNativeMethod", SKIP);
+ expectedProblemAttributes.put("BoundCannotBeArray", SKIP);
+ expectedProblemAttributes.put("BoundHasConflictingArguments", SKIP);
+ expectedProblemAttributes.put("BoundMustBeAnInterface", SKIP);
+ expectedProblemAttributes.put("BoxingConversion", new ProblemAttributes(JavaCore.COMPILER_PB_AUTOBOXING));
+ expectedProblemAttributes.put("BytecodeExceeds64KLimit", SKIP);
+ expectedProblemAttributes.put("BytecodeExceeds64KLimitForClinit", SKIP);
+ expectedProblemAttributes.put("BytecodeExceeds64KLimitForConstructor", SKIP);
+ expectedProblemAttributes.put("CannotAllocateVoidArray", SKIP);
+ expectedProblemAttributes.put("CannotDeclareEnumSpecialMethod", SKIP);
+ expectedProblemAttributes.put("CannotDefineAnnotationInLocalType", SKIP);
+ expectedProblemAttributes.put("CannotDefineDimensionExpressionsWithInit", SKIP);
+ expectedProblemAttributes.put("CannotDefineEnumInLocalType", SKIP);
+ expectedProblemAttributes.put("CannotDefineInterfaceInLocalType", SKIP);
+ expectedProblemAttributes.put("CannotDefineStaticInitializerInLocalType", SKIP);
+ expectedProblemAttributes.put("CannotExtendEnum", SKIP);
+ expectedProblemAttributes.put("CannotHideAnInstanceMethodWithAStaticMethod", SKIP);
+ expectedProblemAttributes.put("CannotImportPackage", SKIP);
+ expectedProblemAttributes.put("CannotImplementIncompatibleNullness",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("CannotInferElidedTypes", SKIP);
+ expectedProblemAttributes.put("CannotInferInvocationType", SKIP);
+ expectedProblemAttributes.put("CannotInvokeSuperConstructorInEnum", SKIP);
+ expectedProblemAttributes.put("CannotOverrideAStaticMethodWithAnInstanceMethod", SKIP);
+ expectedProblemAttributes.put("CannotReadSource", SKIP);
+ expectedProblemAttributes.put("CannotReturnInInitializer", SKIP);
+ expectedProblemAttributes.put("CannotThrowNull", SKIP);
+ expectedProblemAttributes.put("CannotThrowType", SKIP);
+ expectedProblemAttributes.put("CannotUseDiamondWithAnonymousClasses", SKIP);
+ expectedProblemAttributes.put("CannotUseDiamondWithExplicitTypeArguments", SKIP);
+ expectedProblemAttributes.put("CannotUseSuperInCodeSnippet", SKIP);
+ expectedProblemAttributes.put("ClassExtendFinalClass", SKIP);
+ expectedProblemAttributes.put("CodeCannotBeReached", SKIP);
+ expectedProblemAttributes.put("CodeSnippetMissingClass", SKIP);
+ expectedProblemAttributes.put("CodeSnippetMissingMethod", SKIP);
+ expectedProblemAttributes.put("ComparingIdentical",
+ new ProblemAttributes(JavaCore.COMPILER_PB_COMPARING_IDENTICAL));
+ expectedProblemAttributes.put("ConflictingImport", SKIP);
+ expectedProblemAttributes.put("ConflictingNullAnnotations",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ConstructedArrayIncompatible", SKIP);
+ expectedProblemAttributes.put("ConstructionTypeMismatch", SKIP);
+ expectedProblemAttributes.put("ConflictingInheritedNullAnnotations",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ConstructorReferenceNotBelow18", SKIP);
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasNonDefaultMembers", SKIP);
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasShorterRetention", SKIP);
+ expectedProblemAttributes.put("ContainerAnnotationTypeHasWrongValueType", SKIP);
+ expectedProblemAttributes.put("ContainerAnnotationTypeMustHaveValue", SKIP);
+ expectedProblemAttributes.put("ContradictoryNullAnnotations",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsOnBound",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsInferred",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ContradictoryNullAnnotationsInferredFunctionType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ConstructorVarargsArgumentNeedCast",
+ new ProblemAttributes(JavaCore.COMPILER_PB_VARARGS_ARGUMENT_NEED_CAST));
+ expectedProblemAttributes.put("CorruptedSignature", SKIP);
+ expectedProblemAttributes.put("CyclicModuleDependency", SKIP);
+ expectedProblemAttributes.put("DanglingReference", SKIP);
+ expectedProblemAttributes.put("DeadCode", new ProblemAttributes(JavaCore.COMPILER_PB_DEAD_CODE));
+ expectedProblemAttributes.put("DefaultMethodNotBelow18", SKIP);
+ expectedProblemAttributes.put("DefaultMethodOverridesObjectMethod", SKIP);
+ expectedProblemAttributes.put("DereferencingNullableExpression",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("DiamondNotBelow17", SKIP);
+ expectedProblemAttributes.put("DirectInvocationOfAbstractMethod", SKIP);
+ expectedProblemAttributes.put("DisallowedTargetForAnnotation", SKIP);
+ expectedProblemAttributes.put("DisallowedTargetForContainerAnnotationType", SKIP);
+ expectedProblemAttributes.put("DiscouragedReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DISCOURAGED_REFERENCE));
+ expectedProblemAttributes.put("DuplicateAnnotation", SKIP);
+ expectedProblemAttributes.put("DuplicateAnnotationNotMarkedRepeatable", SKIP);
+ expectedProblemAttributes.put("DuplicateAnnotationMember", SKIP);
+ expectedProblemAttributes.put("DuplicateBlankFinalFieldInitialization", SKIP);
+ expectedProblemAttributes.put("DuplicateBounds", SKIP);
+ expectedProblemAttributes.put("DuplicateBoundInIntersectionCast", SKIP);
+ expectedProblemAttributes.put("DuplicateCase", SKIP);
+ expectedProblemAttributes.put("DuplicateDefaultCase", SKIP);
+ expectedProblemAttributes.put("DuplicateExports", SKIP);
+ expectedProblemAttributes.put("DuplicateField", SKIP);
+ expectedProblemAttributes.put("DuplicateFinalLocalInitialization", SKIP);
+ expectedProblemAttributes.put("DuplicateImport", SKIP);
+ expectedProblemAttributes.put("DuplicateInheritedMethods", SKIP);
+ expectedProblemAttributes.put("DuplicateInheritedDefaultMethods", SKIP);
+ expectedProblemAttributes.put("DuplicateLabel", SKIP);
+ expectedProblemAttributes.put("DuplicateMethod", SKIP);
+ expectedProblemAttributes.put("DuplicateMethodErasure", SKIP);
+ expectedProblemAttributes.put("DuplicateModifierForArgument", SKIP);
+ expectedProblemAttributes.put("DuplicateModifierForField", SKIP);
+ expectedProblemAttributes.put("DuplicateModifierForMethod", SKIP);
+ expectedProblemAttributes.put("DuplicateModifierForType", SKIP);
+ expectedProblemAttributes.put("DuplicateModifierForVariable", SKIP);
+ expectedProblemAttributes.put("DuplicateModuleRef", SKIP);
+ expectedProblemAttributes.put("DuplicateNestedType", SKIP);
+ expectedProblemAttributes.put("DuplicateOpens", SKIP);
+ expectedProblemAttributes.put("DuplicateParameterizedMethods", SKIP);
+ expectedProblemAttributes.put("DuplicateRequires", SKIP);
+ expectedProblemAttributes.put("DuplicateResource", SKIP);
+ expectedProblemAttributes.put("DuplicateServices", SKIP);
+ expectedProblemAttributes.put("DuplicateSuperInterface", SKIP);
+ expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", SKIP);
+ expectedProblemAttributes.put("DuplicateTypeVariable", SKIP);
+ expectedProblemAttributes.put("DuplicateTypes", SKIP);
+ expectedProblemAttributes.put("DuplicateUses", SKIP);
+ expectedProblemAttributes.put("EmptyControlFlowStatement",
+ new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT));
+ expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", SKIP);
+ expectedProblemAttributes.put("EndOfSource", SKIP);
+ expectedProblemAttributes.put("EnumAbstractMethodMustBeImplemented", SKIP);
+ expectedProblemAttributes.put("EnumConstantCannotDefineAbstractMethod", SKIP);
+ expectedProblemAttributes.put("EnumConstantMustImplementAbstractMethod", SKIP);
+ expectedProblemAttributes.put("EnumConstantsCannotBeSurroundedByParenthesis", SKIP);
+ expectedProblemAttributes.put("EnumStaticFieldInInInitializerContext", SKIP);
+ expectedProblemAttributes.put("EnumSwitchCannotTargetField", SKIP);
+ expectedProblemAttributes.put("ExceptionParameterIsNeverUsed",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_EXCEPTION_PARAMETER));
+ expectedProblemAttributes.put("ExceptionTypeAmbiguous", SKIP);
+ expectedProblemAttributes.put("ExceptionTypeInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("ExceptionTypeInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("ExceptionTypeNotFound", SKIP);
+ expectedProblemAttributes.put("ExceptionTypeNotVisible", SKIP);
+ expectedProblemAttributes.put("ExplicitThisParameterNotInLambda", SKIP);
+ expectedProblemAttributes.put("ExplicitThisParameterNotBelow18", SKIP);
+ expectedProblemAttributes.put("ExplicitlyClosedAutoCloseable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_EXPLICITLY_CLOSED_AUTOCLOSEABLE));
+ expectedProblemAttributes.put("ExportedPackageDoesNotExistOrIsEmpty", SKIP);
+ expectedProblemAttributes.put("ExpressionShouldBeAVariable", SKIP);
+ expectedProblemAttributes.put("ExternalProblemFixable", SKIP);
+ expectedProblemAttributes.put("ExternalProblemNotFixable", SKIP);
+ expectedProblemAttributes.put("ExplicitAnnotationTargetRequired", SKIP);
+ expectedProblemAttributes.put("FallthroughCase",
+ new ProblemAttributes(JavaCore.COMPILER_PB_FALLTHROUGH_CASE));
+ expectedProblemAttributes.put("FieldComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("FieldHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_FIELD_HIDING));
+ expectedProblemAttributes.put("FieldHidingLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_FIELD_HIDING));
+ expectedProblemAttributes.put("FieldMissingDeprecatedAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
+ expectedProblemAttributes.put("FieldMustBeFinal", SKIP);
+ expectedProblemAttributes.put("FieldTypeAmbiguous", SKIP);
+ expectedProblemAttributes.put("FieldTypeInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("FieldTypeInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("FieldTypeNotFound", SKIP);
+ expectedProblemAttributes.put("FieldTypeNotVisible", SKIP);
+ expectedProblemAttributes.put("FinalBoundForTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_FINAL_PARAMETER_BOUND));
+ expectedProblemAttributes.put("FinalFieldAssignment", SKIP);
+ expectedProblemAttributes.put("FinalMethodCannotBeOverridden", SKIP);
+ expectedProblemAttributes.put("FinalOuterLocalAssignment", SKIP);
+ expectedProblemAttributes.put("FinallyMustCompleteNormally",
+ new ProblemAttributes(JavaCore.COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING));
+ expectedProblemAttributes.put("ForbiddenReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", SKIP);
+ expectedProblemAttributes.put("GenericInferenceError", SKIP); // TODO should be removed via
+ // https://bugs.eclipse.org/404675
+ expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", SKIP);
+ expectedProblemAttributes.put("GenericTypeCannotExtendThrowable", SKIP);
+ expectedProblemAttributes.put("HidingEnclosingType", SKIP);
+ expectedProblemAttributes.put("HierarchyCircularity", SKIP);
+ expectedProblemAttributes.put("HierarchyCircularitySelfReference", SKIP);
+ expectedProblemAttributes.put("HierarchyHasProblems", SKIP);
+ expectedProblemAttributes.put("IllegalAbstractModifierCombinationForMethod", SKIP);
+ expectedProblemAttributes.put("IllegalStrictfpForAbstractInterfaceMethod", SKIP);
+ expectedProblemAttributes.put("IllegalAccessFromTypeVariable", SKIP);
+ expectedProblemAttributes.put("IllegalAnnotationForBaseType", SKIP);
+ expectedProblemAttributes.put("IllegalCast", SKIP);
+ expectedProblemAttributes.put("IllegalClassLiteralForTypeVariable", SKIP);
+ expectedProblemAttributes.put("IllegalDeclarationOfThisParameter", SKIP);
+ expectedProblemAttributes.put("IllegalDefaultModifierSpecification", SKIP);
+ expectedProblemAttributes.put("IllegalDefinitionToNonNullParameter",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("IllegalDimension", SKIP);
+ expectedProblemAttributes.put("IllegalEnclosingInstanceSpecification", SKIP);
+ expectedProblemAttributes.put("IllegalExtendedDimensions", SKIP);
+ expectedProblemAttributes.put("IllegalExtendedDimensionsForVarArgs", SKIP);
+ expectedProblemAttributes.put("IllegalGenericArray", SKIP);
+ expectedProblemAttributes.put("IllegalHexaLiteral", SKIP);
+ expectedProblemAttributes.put("IllegalInstanceofParameterizedType", SKIP);
+ expectedProblemAttributes.put("IllegalInstanceofTypeParameter", SKIP);
+ expectedProblemAttributes.put("IllegalBasetypeInIntersectionCast", SKIP);
+ expectedProblemAttributes.put("IllegalModifierCombinationFinalAbstractForClass", SKIP);
+ expectedProblemAttributes.put("IllegalModifierCombinationFinalVolatileForField", SKIP);
+ expectedProblemAttributes.put("IllegalModifierCombinationForInterfaceMethod", SKIP);
+ expectedProblemAttributes.put("IllegalModifierCombinationForPrivateInterfaceMethod9", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForAnnotationField", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForAnnotationMemberType", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForAnnotationMethod", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForAnnotationType", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForArgument", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForClass", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForConstructor", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForEnum", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForEnumConstant", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForEnumConstructor", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForField", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForInterface", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForInterfaceField", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod18", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForLocalClass", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForLocalEnum", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForMemberClass", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForMemberEnum", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForMemberInterface", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForMethod", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForModule", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForInterfaceMethod9", SKIP);
+ expectedProblemAttributes.put("IllegalModifierForVariable", SKIP);
+ expectedProblemAttributes.put("IllegalModifiersForElidedType", SKIP);
+ expectedProblemAttributes.put("IllegalModifiers", SKIP);
+ expectedProblemAttributes.put("IllegalParameterNullityRedefinition", SKIP);
+ expectedProblemAttributes.put("IllegalPrimitiveOrArrayTypeForEnclosingInstance", SKIP);
+ expectedProblemAttributes.put("IllegalQualifiedEnumConstantLabel", SKIP);
+ expectedProblemAttributes.put("IllegalQualifiedParameterizedTypeAllocation", SKIP);
+ expectedProblemAttributes.put("IllegalQualifierForExplicitThis", SKIP);
+ expectedProblemAttributes.put("IllegalQualifierForExplicitThis2", SKIP);
+ expectedProblemAttributes.put("IllegalRedefinitionOfTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("IllegalRedefinitionToNonNullParameter",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("IllegalReturnNullityRedefinition",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("IllegalReturnNullityRedefinitionFreeTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("IllegalStaticModifierForMemberType", SKIP);
+ expectedProblemAttributes.put("IllegalTypeAnnotationsInStaticMemberAccess", SKIP);
+ expectedProblemAttributes.put("IllegalTypeArgumentsInRawConstructorReference", SKIP);
+ expectedProblemAttributes.put("IllegalTypeForExplicitThis", SKIP);
+ expectedProblemAttributes.put("IllegalTypeVariableSuperReference", SKIP);
+ expectedProblemAttributes.put("IllegalUnderscorePosition", SKIP);
+ expectedProblemAttributes.put("IllegalUsageOfQualifiedTypeReference", SKIP);
+ expectedProblemAttributes.put("IllegalUsageOfTypeAnnotations", SKIP);
+ expectedProblemAttributes.put("IllegalVararg", SKIP);
+ expectedProblemAttributes.put("IllegalVarargInLambda", SKIP);
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForField", SKIP);
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMemberType", SKIP);
+ expectedProblemAttributes.put("IllegalVisibilityModifierCombinationForMethod", SKIP);
+ expectedProblemAttributes.put("IllegalVisibilityModifierForInterfaceMemberType", SKIP);
+ expectedProblemAttributes.put("ImplicitObjectBoundNoNullDefault", SKIP);
+ expectedProblemAttributes.put("ImportAmbiguous", SKIP);
+ expectedProblemAttributes.put("ImportInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("ImportInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("ImportNotFound", SKIP);
+ expectedProblemAttributes.put("ImportNotVisible", SKIP);
+ expectedProblemAttributes.put("IncompatibleExceptionInInheritedMethodThrowsClause", SKIP);
+ expectedProblemAttributes.put("IncompatibleExceptionInThrowsClause", SKIP);
+ expectedProblemAttributes.put("IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD));
+ expectedProblemAttributes.put("IncompatibleReturnType", SKIP);
+ expectedProblemAttributes.put("IncompatibleReturnTypeForNonInheritedInterfaceMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD));
+ expectedProblemAttributes.put("IncompatibleTypesInConditionalOperator", SKIP);
+ expectedProblemAttributes.put("IncompatibleTypesInEqualityOperator", SKIP);
+ expectedProblemAttributes.put("IncompatibleTypesInForeach", SKIP);
+ expectedProblemAttributes.put("IncompatibleLambdaParameterType", SKIP);
+ expectedProblemAttributes.put("IncompatibleMethodReference", SKIP);
+ expectedProblemAttributes.put("IncorrectArityForParameterizedConstructor", SKIP);
+ expectedProblemAttributes.put("IncorrectArityForParameterizedMethod", SKIP);
+ expectedProblemAttributes.put("IncorrectArityForParameterizedType", SKIP);
+ expectedProblemAttributes.put("IncorrectEnclosingInstanceReference", SKIP);
+ expectedProblemAttributes.put("IncorrectSwitchType", SKIP);
+ expectedProblemAttributes.put("IncorrectSwitchType17", SKIP);
+ expectedProblemAttributes.put("IndirectAccessToStaticField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
+ expectedProblemAttributes.put("IndirectAccessToStaticMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
+ expectedProblemAttributes.put("IndirectAccessToStaticType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INDIRECT_STATIC_ACCESS));
+ expectedProblemAttributes.put("InheritedDefaultMethodConflictsWithOtherInherited", SKIP);
+ expectedProblemAttributes.put("InheritedFieldHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("InheritedIncompatibleReturnType", SKIP);
+ expectedProblemAttributes.put("InheritedMethodHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("InheritedMethodReducesVisibility", SKIP);
+ expectedProblemAttributes.put("InheritedTypeHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("InitializerMustCompleteNormally", SKIP);
+ expectedProblemAttributes.put("InstanceFieldDuringConstructorInvocation", SKIP);
+ expectedProblemAttributes.put("InstanceMethodDuringConstructorInvocation", SKIP);
+ expectedProblemAttributes.put("InterfaceAmbiguous", SKIP);
+ expectedProblemAttributes.put("InterfaceCannotHaveConstructors", SKIP);
+ expectedProblemAttributes.put("InterfaceCannotHaveInitializers", SKIP);
+ expectedProblemAttributes.put("InterfaceInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("InterfaceInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("InterfaceNotFound", SKIP);
+ expectedProblemAttributes.put("InterfaceNotFunctionalInterface", SKIP);
+ expectedProblemAttributes.put("InterfaceNotVisible", SKIP);
+ expectedProblemAttributes.put("InterfaceStaticMethodInvocationNotBelow18", SKIP);
+ expectedProblemAttributes.put("InterfaceSuperInvocationNotBelow18", SKIP);
+ expectedProblemAttributes.put("InternalTypeNameProvided", SKIP);
+ expectedProblemAttributes.put("IntersectionCastNotBelow18", SKIP);
+ expectedProblemAttributes.put("InvalidAnnotationMemberType", SKIP);
+ expectedProblemAttributes.put("InvalidArrayConstructorReference", SKIP);
+ expectedProblemAttributes.put("InvalidBinary", SKIP);
+ expectedProblemAttributes.put("InvalidBreak", SKIP);
+ expectedProblemAttributes.put("InvalidCatchBlockSequence", SKIP);
+ expectedProblemAttributes.put("InvalidCharacterConstant", SKIP);
+ expectedProblemAttributes.put("InvalidClassInstantiation", SKIP);
+ expectedProblemAttributes.put("InvalidContinue", SKIP);
+ expectedProblemAttributes.put("InvalidDigit", SKIP);
+ expectedProblemAttributes.put("InvalidEncoding", SKIP);
+ expectedProblemAttributes.put("InvalidEscape", SKIP);
+ expectedProblemAttributes.put("InvalidExplicitConstructorCall", SKIP);
+ expectedProblemAttributes.put("InvalidExpressionAsStatement", SKIP);
+ expectedProblemAttributes.put("InvalidFileNameForPackageAnnotations", SKIP);
+ expectedProblemAttributes.put("InvalidFloat", SKIP);
+ expectedProblemAttributes.put("InvalidHexa", SKIP);
+ expectedProblemAttributes.put("InvalidHighSurrogate", SKIP);
+ expectedProblemAttributes.put("InvalidInput", SKIP);
+ expectedProblemAttributes.put("InvalidLowSurrogate", SKIP);
+ expectedProblemAttributes.put("InvalidLocationForModifiers", SKIP);
+ expectedProblemAttributes.put("InvalidNullToSynchronized", SKIP);
+ expectedProblemAttributes.put("InvalidOctal", SKIP);
+ expectedProblemAttributes.put("InvalidOpensStatement", SKIP);
+ expectedProblemAttributes.put("InvalidOperator", SKIP);
+ expectedProblemAttributes.put("InvalidParameterizedExceptionType", SKIP);
+ expectedProblemAttributes.put("InvalidParenthesizedExpression", SKIP);
+ expectedProblemAttributes.put("InvalidServiceIntfType", SKIP);
+ expectedProblemAttributes.put("InvalidServiceImplType", SKIP);
+ expectedProblemAttributes.put("InvalidTypeArguments", SKIP);
+ expectedProblemAttributes.put("InvalidTypeExpression", SKIP);
+ expectedProblemAttributes.put("InvalidTypeForCollection", SKIP);
+ expectedProblemAttributes.put("InvalidTypeForCollectionTarget14", SKIP);
+ expectedProblemAttributes.put("InvalidTypeForStaticImport", SKIP);
+ expectedProblemAttributes.put("InvalidTypeToSynchronized", SKIP);
+ expectedProblemAttributes.put("InvalidTypeVariableExceptionType", SKIP);
+ expectedProblemAttributes.put("InvalidUnaryExpression", SKIP);
+ expectedProblemAttributes.put("InvalidUnicodeEscape", SKIP);
+ expectedProblemAttributes.put("InvalidUnionTypeReferenceSequence", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfAnnotations", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfForeachStatements", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfReceiverAnnotations", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfStaticImports", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfTypeAnnotations", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfTypeArguments", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfTypeParameters", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfTypeParametersForAnnotationDeclaration", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfTypeParametersForEnumDeclaration", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfVarargs", SKIP);
+ expectedProblemAttributes.put("InvalidUsageOfWildcard", SKIP);
+ expectedProblemAttributes.put("InvalidVoidExpression", SKIP);
+ expectedProblemAttributes.put("IsClassPathCorrect", SKIP);
+ expectedProblemAttributes.put("JavadocAmbiguousConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousMethodReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocAmbiguousType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateParamName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateReturnTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocDuplicateThrowsClassName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocEmptyReturnTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocGenericConstructorTypeArgumentMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocGenericMethodTypeArgumentMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocHiddenReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocIncorrectArityForParameterizedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedFieldHidesEnclosingName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedMethodHidesEnclosingName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInheritedNameHidesEnclosingTypeName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInternalTypeNameProvided",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidMemberTypeQualification",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamTagName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidParamTagTypeParameter",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeArgs",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeHref",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidSeeUrlReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidThrowsClass",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidThrowsClassName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocInvalidValueReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMalformedSeeReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMessagePrefix", SKIP);
+ expectedProblemAttributes.put("JavadocMissing",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_COMMENTS));
+ expectedProblemAttributes.put("JavadocMissingHashCharacter",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingIdentifier",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingParamName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingParamTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
+ expectedProblemAttributes.put("JavadocMissingReturnTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
+ expectedProblemAttributes.put("JavadocMissingSeeReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingTagDescription",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingThrowsClassName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocMissingThrowsTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS));
+ expectedProblemAttributes.put("JavadocNoMessageSendOnArrayType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNoMessageSendOnBaseType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonGenericConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonGenericMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNonStaticTypeFromStaticInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocNotVisibleType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUndefinedType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnexpectedTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnexpectedText",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUnterminatedInlineTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("JavadocUsingDeprecatedType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC));
+ expectedProblemAttributes.put("LambdaDescriptorMentionsUnmentionable", SKIP);
+ expectedProblemAttributes.put("LambdaExpressionNotBelow18", SKIP);
+ expectedProblemAttributes.put("LambdaRedeclaresArgument", SKIP);
+ expectedProblemAttributes.put("LambdaRedeclaresLocal", SKIP);
+ expectedProblemAttributes.put("LambdaShapeComputationError", SKIP);
+ expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", SKIP);
+ expectedProblemAttributes.put("LocalVariableCannotBeNull", SKIP);
+ expectedProblemAttributes.put("LocalVariableHidingField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
+ expectedProblemAttributes.put("LocalVariableHidingLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING));
+ expectedProblemAttributes.put("LocalVariableIsNeverUsed",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LOCAL));
+ expectedProblemAttributes.put("LocalVariableMayBeNull", SKIP);
+ expectedProblemAttributes.put("MaskedCatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_HIDDEN_CATCH_BLOCK));
+ expectedProblemAttributes.put("MethodButWithConstructorName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME));
+ expectedProblemAttributes.put("MethodCanBePotentiallyStatic",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD));
+ expectedProblemAttributes.put("MethodCanBeStatic",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_STATIC_ON_METHOD));
+ expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
+ expectedProblemAttributes.put("MethodMustOverride", SKIP);
+ expectedProblemAttributes.put("MethodMustOverrideOrImplement", SKIP);
+ expectedProblemAttributes.put("MethodNameClash", SKIP);
+ expectedProblemAttributes.put("MethodNameClashHidden", SKIP);
+ expectedProblemAttributes.put("MethodReducesVisibility", SKIP);
+ expectedProblemAttributes.put("MethodReferenceNotBelow18", SKIP);
+ expectedProblemAttributes.put("MethodReferenceSwingsBothWays", SKIP);
+ expectedProblemAttributes.put("MethodRequiresBody", SKIP);
+ expectedProblemAttributes.put("MethodReturnsVoid", SKIP);
+ expectedProblemAttributes.put("MethodVarargsArgumentNeedCast",
+ new ProblemAttributes(JavaCore.COMPILER_PB_VARARGS_ARGUMENT_NEED_CAST));
+ expectedProblemAttributes.put("MisplacedTypeAnnotations", SKIP);
+ expectedProblemAttributes.put("MissingArgumentsForParameterizedMemberType", SKIP);
+ expectedProblemAttributes.put("MissingDefaultCase",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SWITCH_MISSING_DEFAULT_CASE));
+ expectedProblemAttributes.put("MissingEnclosingInstance", SKIP);
+ expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall", SKIP);
+ expectedProblemAttributes.put("MissingEnumConstantCase",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH));
+ expectedProblemAttributes.put("MissingEnumConstantCaseDespiteDefault",
+ new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH));
+ expectedProblemAttributes.put("MissingEnumDefaultCase",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SWITCH_MISSING_DEFAULT_CASE));
+ expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnPackage",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION));
+ expectedProblemAttributes.put("MissingNonNullByDefaultAnnotationOnType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION));
+ expectedProblemAttributes.put("MissingOverrideAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION));
+ expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION));
+ expectedProblemAttributes.put("MissingRequiresTransitiveForTypeInAPI",
+ new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
+ expectedProblemAttributes.put("MissingReturnType", SKIP);
+ expectedProblemAttributes.put("MissingSemiColon", SKIP);
+ expectedProblemAttributes.put("MissingSerialVersion",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SERIAL_VERSION));
+ expectedProblemAttributes.put("MissingSynchronizedModifierInInheritedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD));
+ expectedProblemAttributes.put("MissingTypeInConstructor", SKIP);
+ expectedProblemAttributes.put("MissingTypeInLambda", SKIP);
+ expectedProblemAttributes.put("MissingTypeInMethod", SKIP);
+ expectedProblemAttributes.put("MissingValueForAnnotationMember", SKIP);
+ expectedProblemAttributes.put("MultiCatchNotBelow17", SKIP);
+ expectedProblemAttributes.put("MultipleFunctionalInterfaces", SKIP);
+ expectedProblemAttributes.put("StaticInterfaceMethodNotBelow18", SKIP);
+ expectedProblemAttributes.put("MustDefineEitherDimensionExpressionsOrInitializer", SKIP);
+ expectedProblemAttributes.put("MustSpecifyPackage", SKIP);
+ expectedProblemAttributes.put("NativeMethodsCannotBeStrictfp", SKIP);
+ expectedProblemAttributes.put("NeedToEmulateConstructorAccess",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
+ expectedProblemAttributes.put("NeedToEmulateFieldReadAccess",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
+ expectedProblemAttributes.put("NeedToEmulateFieldWriteAccess",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
+ expectedProblemAttributes.put("NeedToEmulateMethodAccess",
+ new ProblemAttributes(JavaCore.COMPILER_PB_SYNTHETIC_ACCESS_EMULATION));
+ expectedProblemAttributes.put("NestedServiceImpl", SKIP);
+ expectedProblemAttributes.put("NoAdditionalBoundAfterTypeVariable", SKIP);
+ expectedProblemAttributes.put("NoFieldOnBaseType", SKIP);
+ expectedProblemAttributes.put("NoGenericLambda", SKIP);
+ expectedProblemAttributes.put("NoImplicitStringConversionForCharArrayExpression",
+ new ProblemAttributes(JavaCore.COMPILER_PB_CHAR_ARRAY_IN_STRING_CONCATENATION));
+ expectedProblemAttributes.put("NoMessageSendOnArrayType", SKIP);
+ expectedProblemAttributes.put("NoMessageSendOnBaseType", SKIP);
+ expectedProblemAttributes.put("NoSuperInInterfaceContext", SKIP);
+ expectedProblemAttributes.put("NonBlankFinalLocalAssignment", SKIP);
+ expectedProblemAttributes.put("NonConstantExpression", SKIP);
+ expectedProblemAttributes.put("NonDenotableTypeArgumentForAnonymousDiamond", SKIP);
+ expectedProblemAttributes.put("NonExternalizedStringLiteral",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NON_NLS_STRING_LITERAL));
+ expectedProblemAttributes.put("NonGenericConstructor", SKIP);
+ expectedProblemAttributes.put("NonGenericMethod", SKIP);
+ expectedProblemAttributes.put("NonGenericType", SKIP);
+ expectedProblemAttributes.put("NonNullDefaultDetailIsNotEvaluated", SKIP);
+ expectedProblemAttributes.put("NonNullExpressionComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NonNullSpecdFieldComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NonNullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NonNullMessageSendComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NonNullTypeVariableFromLegacyMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_TYPEVAR_FROM_LEGACY_INVOCATION));
+ expectedProblemAttributes.put("NonNullMethodTypeVariableFromLegacyMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_TYPEVAR_FROM_LEGACY_INVOCATION));
+ expectedProblemAttributes.put("NonPublicTypeInAPI", new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
+ expectedProblemAttributes.put("NonStaticAccessToStaticField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER));
+ expectedProblemAttributes.put("NonStaticAccessToStaticMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER));
+ expectedProblemAttributes.put("NonStaticContextForEnumMemberType", SKIP);
+ expectedProblemAttributes.put("NonStaticFieldFromStaticInvocation", SKIP);
+ expectedProblemAttributes.put("NonStaticOrAlienTypeReceiver", SKIP);
+ expectedProblemAttributes.put("NonStaticTypeFromStaticInvocation", SKIP);
+ expectedProblemAttributes.put("NotAnnotationType", SKIP);
+ expectedProblemAttributes.put("NotAccessibleConstructor", SKIP);
+ expectedProblemAttributes.put("NotAccessibleField", SKIP);
+ expectedProblemAttributes.put("NotAccessibleMethod", SKIP);
+ expectedProblemAttributes.put("NotAccessibleType", SKIP);
+ expectedProblemAttributes.put("NotAccessiblePackage", SKIP);
+ expectedProblemAttributes.put("NotExportedTypeInAPI",
+ new ProblemAttributes(JavaCore.COMPILER_PB_API_LEAKS));
+ expectedProblemAttributes.put("ConflictingPackageFromModules", SKIP);
+ expectedProblemAttributes.put("ConflictingPackageFromOtherModules", SKIP);
+ expectedProblemAttributes.put("NotVisibleConstructor", SKIP);
+ expectedProblemAttributes.put("NotVisibleConstructorInDefaultConstructor", SKIP);
+ expectedProblemAttributes.put("NotVisibleConstructorInImplicitConstructorCall", SKIP);
+ expectedProblemAttributes.put("NotVisibleField", SKIP);
+ expectedProblemAttributes.put("NotVisibleMethod", SKIP);
+ expectedProblemAttributes.put("NotVisibleType", SKIP);
+ expectedProblemAttributes.put("NullableFieldReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("NullAnnotationAtQualifyingType", SKIP);
+ expectedProblemAttributes.put("NullAnnotationUnsupportedLocation", SKIP);
+ expectedProblemAttributes.put("NullAnnotationUnsupportedLocationAtType", SKIP);
+ expectedProblemAttributes.put("NullityMismatchAgainstFreeTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
+ expectedProblemAttributes.put("NullityMismatchingTypeAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("NullityMismatchingTypeAnnotationSuperHint",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("NullityMismatchTypeArgument",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetail",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("NullityUncheckedTypeAnnotationDetailSuperHint",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("NullExpressionReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
+ expectedProblemAttributes.put("NullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NullLocalVariableInstanceofYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("NullLocalVariableReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
+ expectedProblemAttributes.put("NullNotCompatibleToFreeTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
+ expectedProblemAttributes.put("NullSourceString", SKIP);
+ expectedProblemAttributes.put("NullUnboxing", new ProblemAttributes(JavaCore.COMPILER_PB_NULL_REFERENCE));
+ expectedProblemAttributes.put("NumericValueOutOfRange", SKIP);
+ expectedProblemAttributes.put("ObjectCannotBeGeneric", SKIP);
+ expectedProblemAttributes.put("ObjectCannotHaveSuperTypes", SKIP);
+ expectedProblemAttributes.put("ObjectHasNoSuperclass", SKIP);
+ expectedProblemAttributes.put("ObjectMustBeClass", SKIP);
+ expectedProblemAttributes.put("OuterLocalMustBeEffectivelyFinal", SKIP);
+ expectedProblemAttributes.put("OuterLocalMustBeFinal", SKIP);
+ expectedProblemAttributes.put("OverridingDeprecatedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("OverridingDeprecatedSinceVersionMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("OverridingTerminallyDeprecatedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("OverridingTerminallyDeprecatedSinceVersionMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("OverridingMethodWithoutSuperInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_OVERRIDING_METHOD_WITHOUT_SUPER_INVOCATION));
+ expectedProblemAttributes.put("OverridingNonVisibleMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_OVERRIDING_PACKAGE_DEFAULT_METHOD));
+ expectedProblemAttributes.put("PackageCollidesWithType", SKIP);
+ expectedProblemAttributes.put("PackageDoesNotExistOrIsEmpty", SKIP);
+ expectedProblemAttributes.put("PackageIsNotExpectedPackage", SKIP);
+ expectedProblemAttributes.put("ParameterAssignment",
+ new ProblemAttributes(JavaCore.COMPILER_PB_PARAMETER_ASSIGNMENT));
+ expectedProblemAttributes.put("ParameterLackingNonNullAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED));
+ expectedProblemAttributes.put("ParameterLackingNullableAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ParameterMismatch", SKIP);
+ expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", SKIP);
+ expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", SKIP);
+ expectedProblemAttributes.put("ParsingError", SKIP);
+ expectedProblemAttributes.put("ParsingErrorDeleteToken", SKIP);
+ expectedProblemAttributes.put("ParsingErrorDeleteTokens", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInsertToComplete", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInsertToCompletePhrase", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInsertToCompleteScope", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInsertTokenAfter", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInsertTokenBefore", SKIP);
+ expectedProblemAttributes.put("ParsingErrorInvalidToken", SKIP);
+ expectedProblemAttributes.put("ParsingErrorMergeTokens", SKIP);
+ expectedProblemAttributes.put("ParsingErrorMisplacedConstruct", SKIP);
+ expectedProblemAttributes.put("ParsingErrorNoSuggestion", SKIP);
+ expectedProblemAttributes.put("ParsingErrorNoSuggestionForTokens", SKIP);
+ expectedProblemAttributes.put("ParsingErrorOnKeyword", SKIP);
+ expectedProblemAttributes.put("ParsingErrorOnKeywordNoSuggestion", SKIP);
+ expectedProblemAttributes.put("ParsingErrorReplaceTokens", SKIP);
+ expectedProblemAttributes.put("ParsingErrorUnexpectedEOF", SKIP);
+ expectedProblemAttributes.put("PolymorphicMethodNotBelow17", SKIP);
+ expectedProblemAttributes.put("PossibleAccidentalBooleanAssignment",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POSSIBLE_ACCIDENTAL_BOOLEAN_ASSIGNMENT));
+ expectedProblemAttributes.put("PotentialHeapPollutionFromVararg",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("PotentiallyUnclosedCloseable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE));
+ expectedProblemAttributes.put("PotentiallyUnclosedCloseableAtExit",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE));
+ expectedProblemAttributes.put("PotentialNullExpressionReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("PotentialNullLocalVariableReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("PotentialNullUnboxing",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("PotentialNullMessageSendReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIAL_NULL_REFERENCE));
+ expectedProblemAttributes.put("ProviderMethodOrConstructorRequiredForServiceImpl", SKIP);
+ expectedProblemAttributes.put("PublicClassMustMatchFileName", SKIP);
+ expectedProblemAttributes.put("RawMemberTypeCannotBeParameterized", SKIP);
+ expectedProblemAttributes.put("RawTypeReference",
+ new ProblemAttributes(JavaCore.COMPILER_PB_RAW_TYPE_REFERENCE));
+ expectedProblemAttributes.put("RecursiveConstructorInvocation", SKIP);
+ expectedProblemAttributes.put("RedefinedArgument", SKIP);
+ expectedProblemAttributes.put("RedefinedLocal", SKIP);
+ expectedProblemAttributes.put("RedundantSpecificationOfTypeArguments",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_TYPE_ARGUMENTS));
+ expectedProblemAttributes.put("RedundantLocalVariableNullAssignment",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullCheckAgainstNonNullType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullExpression",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullSpecdField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnNonNullMessageSend",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnNullLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullCheckOnSpecdNonNullLocalVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationModule",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationPackage",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationLocal",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantNullDefaultAnnotationField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION));
+ expectedProblemAttributes.put("RedundantSuperinterface",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE));
+ expectedProblemAttributes.put("ReferenceExpressionParameterNullityMismatch",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ReferenceExpressionParameterNullityUnchecked",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("ReferenceExpressionReturnNullRedef",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ReferenceExpressionReturnNullRedefUnchecked",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("ReferenceToForwardField", SKIP);
+ expectedProblemAttributes.put("ReferenceToForwardTypeVariable", SKIP);
+ expectedProblemAttributes.put("RepeatableAnnotationTypeIsDocumented", SKIP);
+ expectedProblemAttributes.put("RepeatableAnnotationTypeIsInherited", SKIP);
+ expectedProblemAttributes.put("RepeatableAnnotationTypeTargetMismatch", SKIP);
+ expectedProblemAttributes.put("RepeatableAnnotationWithRepeatingContainerAnnotation", SKIP);
+ expectedProblemAttributes.put("RepeatedAnnotationWithContainerAnnotation", SKIP);
+ expectedProblemAttributes.put("RequiredNonNullButProvidedFreeTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedNull",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedPotentialNull",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedUnknown",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("RequiredNonNullButProvidedSpecdNullable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_SPECIFICATION_VIOLATION));
+ expectedProblemAttributes.put("ResourceHasToImplementAutoCloseable", SKIP);
+ expectedProblemAttributes.put("ReturnTypeAmbiguous", SKIP);
+ expectedProblemAttributes.put("ReturnTypeCannotBeVoidArray", SKIP);
+ expectedProblemAttributes.put("ReturnTypeInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("ReturnTypeInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("ReturnTypeMismatch", SKIP);
+ expectedProblemAttributes.put("ReturnTypeNotFound", SKIP);
+ expectedProblemAttributes.put("ReturnTypeNotVisible", SKIP);
+ expectedProblemAttributes.put("SafeVarargsOnFixedArityMethod", SKIP);
+ expectedProblemAttributes.put("SafeVarargsOnNonFinalInstanceMethod", SKIP);
+ expectedProblemAttributes.put("ServiceImplDefaultConstructorNotPublic", SKIP);
+ expectedProblemAttributes.put("ServiceImplNotDefinedByModule", SKIP);
+ expectedProblemAttributes.put("ShouldImplementHashcode",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_HASHCODE_METHOD));
+ expectedProblemAttributes.put("ShouldReturnValue", SKIP);
+ expectedProblemAttributes.put("ShouldReturnValueHintMissingDefault", SKIP);
+ expectedProblemAttributes.put("SpecdNonNullLocalVariableComparisonYieldsFalse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_NULL_CHECK));
+ expectedProblemAttributes.put("StaticInheritedMethodConflicts", SKIP);
+ expectedProblemAttributes.put("StaticMemberOfParameterizedType", SKIP);
+ expectedProblemAttributes.put("StaticMethodRequested", SKIP);
+ expectedProblemAttributes.put("StaticMethodShouldBeAccessedStatically", SKIP);
+ expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", SKIP);
+ expectedProblemAttributes.put("SuperAccessCannotBypassDirectSuper", SKIP);
+ expectedProblemAttributes.put("SuperCallCannotBypassOverride", SKIP);
+ expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", SKIP);
+ expectedProblemAttributes.put("SuperInterfacesCollide", SKIP);
+ expectedProblemAttributes.put("SuperTypeUsingWildcard", SKIP);
+ expectedProblemAttributes.put("SuperclassAmbiguous",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_HASHCODE_METHOD));
+ expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", SKIP);
+ expectedProblemAttributes.put("SuperclassInternalNameProvided", SKIP);
+ expectedProblemAttributes.put("SuperclassMustBeAClass", SKIP);
+ expectedProblemAttributes.put("SuperclassNotFound", SKIP);
+ expectedProblemAttributes.put("SuperclassNotVisible",
+ new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE));
+ expectedProblemAttributes.put("SuperfluousSemicolon",
+ new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT));
+ expectedProblemAttributes.put("SwitchOnEnumNotBelow15", SKIP);
+ expectedProblemAttributes.put("SwitchOnStringsNotBelow17", SKIP);
+ expectedProblemAttributes.put("TargetTypeNotAFunctionalInterface", SKIP);
+ expectedProblemAttributes.put("Task", SKIP);
+ expectedProblemAttributes.put("ThisInStaticContext", SKIP);
+ expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", SKIP);
+ expectedProblemAttributes.put("ToleratedMisplacedTypeAnnotations", SKIP);
+ expectedProblemAttributes.put("TooManyArgumentSlots", SKIP);
+ expectedProblemAttributes.put("TooManyArrayDimensions", SKIP);
+ expectedProblemAttributes.put("TooManyBytesForStringConstant", SKIP);
+ expectedProblemAttributes.put("TooManyConstantsInConstantPool", SKIP);
+ expectedProblemAttributes.put("TooManyFields", SKIP);
+ expectedProblemAttributes.put("TooManyLocalVariableSlots", SKIP);
+ expectedProblemAttributes.put("TooManyMethods", SKIP);
+ expectedProblemAttributes.put("TooManyParametersForSyntheticMethod", SKIP);
+ expectedProblemAttributes.put("TooManySyntheticArgumentSlots", SKIP);
+ expectedProblemAttributes.put("TypeAnnotationAtQualifiedName", SKIP);
+ expectedProblemAttributes.put("TypeArgumentMismatch", SKIP);
+ expectedProblemAttributes.put("TypeArgumentsForRawGenericConstructor", SKIP);
+ expectedProblemAttributes.put("TypeArgumentsForRawGenericMethod", SKIP);
+ expectedProblemAttributes.put("TypeCollidesWithPackage", SKIP);
+ expectedProblemAttributes.put("TypeHidingType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
+ expectedProblemAttributes.put("TypeHidingTypeParameterFromMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
+ expectedProblemAttributes.put("TypeHidingTypeParameterFromType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
+ expectedProblemAttributes.put("TypeMismatch", SKIP);
+ expectedProblemAttributes.put("TypeMissingDeprecatedAnnotation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION));
+ expectedProblemAttributes.put("TypeParameterHidingType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TYPE_PARAMETER_HIDING));
+ expectedProblemAttributes.put("UnboxingConversion", new ProblemAttributes(JavaCore.COMPILER_PB_AUTOBOXING));
+ expectedProblemAttributes.put("UncheckedAccessOfValueOfFreeTypeVariable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_PESSIMISTIC_NULL_ANALYSIS_FOR_FREE_TYPE_VARIABLES));
+ expectedProblemAttributes.put("UnclosedCloseable",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE));
+ expectedProblemAttributes.put("UnclosedCloseableAtExit",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE));
+ expectedProblemAttributes.put("UndefinedAnnotationMember", SKIP);
+ expectedProblemAttributes.put("UndefinedConstructor", SKIP);
+ expectedProblemAttributes.put("UndefinedConstructorInDefaultConstructor", SKIP);
+ expectedProblemAttributes.put("UndefinedConstructorInImplicitConstructorCall", SKIP);
+ expectedProblemAttributes.put("UndefinedField", SKIP);
+ expectedProblemAttributes.put("UndefinedLabel", SKIP);
+ expectedProblemAttributes.put("UndefinedMethod", SKIP);
+ expectedProblemAttributes.put("UndefinedModule", SKIP);
+ expectedProblemAttributes.put("UndefinedName", SKIP);
+ expectedProblemAttributes.put("UndefinedType", SKIP);
+ expectedProblemAttributes.put("UndefinedTypeVariable", SKIP);
+ expectedProblemAttributes.put("UnderscoresInLiteralsNotBelow17", SKIP);
+ expectedProblemAttributes.put("UndocumentedEmptyBlock",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK));
+ expectedProblemAttributes.put("UnexpectedStaticModifierForField", SKIP);
+ expectedProblemAttributes.put("UnexpectedStaticModifierForMethod", SKIP);
+ expectedProblemAttributes.put("UnhandledException", SKIP);
+ expectedProblemAttributes.put("UnhandledExceptionInDefaultConstructor", SKIP);
+ expectedProblemAttributes.put("UnhandledExceptionInImplicitConstructorCall", SKIP);
+ expectedProblemAttributes.put("UnhandledExceptionOnAutoClose", SKIP);
+ expectedProblemAttributes.put("UnhandledWarningToken",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNHANDLED_WARNING_TOKEN));
+ expectedProblemAttributes.put("UninitializedBlankFinalField", SKIP);
+ expectedProblemAttributes.put("UninitializedBlankFinalFieldHintMissingDefault", SKIP);
+ expectedProblemAttributes.put("UninitializedFreeTypeVariableField", SKIP);
+ expectedProblemAttributes.put("UninitializedFreeTypeVariableFieldHintMissingDefault", SKIP);
+ expectedProblemAttributes.put("UninitializedLocalVariable", SKIP);
+ expectedProblemAttributes.put("UninitializedLocalVariableHintMissingDefault", SKIP);
+ expectedProblemAttributes.put("UninitializedNonNullField", SKIP);
+ expectedProblemAttributes.put("UninitializedNonNullFieldHintMissingDefault", SKIP);
+ expectedProblemAttributes.put("UninternedIdentityComparison", SKIP);
+ expectedProblemAttributes.put("UnlikelyCollectionMethodArgumentType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNLIKELY_COLLECTION_METHOD_ARGUMENT_TYPE));
+ expectedProblemAttributes.put("UnlikelyEqualsArgumentType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNLIKELY_EQUALS_ARGUMENT_TYPE));
+ expectedProblemAttributes.put("UnmatchedBracket", SKIP);
+ expectedProblemAttributes.put("UnnamedPackageInNamedModule", SKIP);
+ expectedProblemAttributes.put("UnnecessaryArgumentCast", SKIP);
+ expectedProblemAttributes.put("UnnecessaryCast",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_TYPE_CHECK));
+ expectedProblemAttributes.put("UnnecessaryElse",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_ELSE));
+ expectedProblemAttributes.put("UnnecessaryInstanceof",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNNECESSARY_TYPE_CHECK));
+ expectedProblemAttributes.put("UnnecessaryNLSTag",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NON_NLS_STRING_LITERAL));
+ expectedProblemAttributes.put("UnqualifiedFieldAccess",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNQUALIFIED_FIELD_ACCESS));
+ expectedProblemAttributes.put("UnreachableCatch", SKIP);
+ expectedProblemAttributes.put("UnresolvedVariable", SKIP);
+ expectedProblemAttributes.put("UnsafeElementTypeConversion",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeGenericArrayForVarargs",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeGenericCast",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeNullnessCast",
+ new ProblemAttributes(JavaCore.COMPILER_PB_NULL_UNCHECKED_CONVERSION));
+ expectedProblemAttributes.put("UnsafeRawConstructorInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeRawFieldAssignment",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeRawGenericConstructorInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeRawGenericMethodInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeRawMethodInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeReturnTypeOverride",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnsafeTypeConversion",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNCHECKED_TYPE_OPERATION));
+ expectedProblemAttributes.put("UnstableAutoModuleName",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNSTABLE_AUTO_MODULE_NAME));
+ expectedProblemAttributes.put("UnterminatedComment", SKIP);
+ expectedProblemAttributes.put("UnterminatedString", SKIP);
+ expectedProblemAttributes.put("UnusedConstructorDeclaredThrownException",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION));
+ expectedProblemAttributes.put("UnusedImport", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_IMPORT));
+ expectedProblemAttributes.put("UnusedLabel", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LABEL));
+ expectedProblemAttributes.put("UnusedMethodDeclaredThrownException",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION));
+ expectedProblemAttributes.put("UnusedObjectAllocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_OBJECT_ALLOCATION));
+ expectedProblemAttributes.put("UnusedPrivateConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
+ expectedProblemAttributes.put("UnusedPrivateField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
+ expectedProblemAttributes.put("UnusedPrivateMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
+ expectedProblemAttributes.put("UnusedPrivateType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER));
+ expectedProblemAttributes.put("UnusedTypeArgumentsForConstructorInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_ARGUMENTS_FOR_METHOD_INVOCATION));
+ expectedProblemAttributes.put("UnusedTypeParameter",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_PARAMETER));
+ expectedProblemAttributes.put("UnusedTypeArgumentsForMethodInvocation",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_TYPE_ARGUMENTS_FOR_METHOD_INVOCATION));
+ expectedProblemAttributes.put("UnusedWarningToken",
+ new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_WARNING_TOKEN));
+ expectedProblemAttributes.put("UseAssertAsAnIdentifier",
+ new ProblemAttributes(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER));
+ expectedProblemAttributes.put("UseEnumAsAnIdentifier",
+ new ProblemAttributes(JavaCore.COMPILER_PB_ENUM_IDENTIFIER));
+ expectedProblemAttributes.put("IllegalUseOfUnderscoreAsAnIdentifier", SKIP);
+ expectedProblemAttributes.put("UsingDeprecatedConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedModule",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedPackage", SKIP);
+ expectedProblemAttributes.put("UsingDeprecatedType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionModule",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionPackage", SKIP);
+ expectedProblemAttributes.put("UsingDeprecatedSinceVersionType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedModule",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedPackage", SKIP);
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionConstructor",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionField",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionMethod",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionModule",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionPackage", SKIP);
+ expectedProblemAttributes.put("UsingTerminallyDeprecatedSinceVersionType",
+ new ProblemAttributes(JavaCore.COMPILER_PB_TERMINAL_DEPRECATION));
+ expectedProblemAttributes.put("VarargsConflict", SKIP);
+ expectedProblemAttributes.put("VarargsElementTypeNotVisible", SKIP);
+ expectedProblemAttributes.put("VarargsElementTypeNotVisibleForConstructor", SKIP);
+ expectedProblemAttributes.put("VariableTypeCannotBeVoid", SKIP);
+ expectedProblemAttributes.put("VariableTypeCannotBeVoidArray", SKIP);
+ expectedProblemAttributes.put("VoidMethodReturnsValue", SKIP);
+ expectedProblemAttributes.put("WildcardConstructorInvocation", SKIP);
+ expectedProblemAttributes.put("WildcardFieldAssignment", SKIP);
+ expectedProblemAttributes.put("WildcardMethodInvocation", SKIP);
+ expectedProblemAttributes.put("illFormedParameterizationOfFunctionalInterface", SKIP);
+ expectedProblemAttributes.put("lambdaParameterTypeMismatched", SKIP);
+ expectedProblemAttributes.put("lambdaSignatureMismatched", SKIP);
+ expectedProblemAttributes.put("DisallowedExplicitThisParameter", SKIP);
+ expectedProblemAttributes.put("IllegalArrayOfUnionType", SKIP);
+ expectedProblemAttributes.put("IllegalArrayTypeInIntersectionCast", SKIP);
+ expectedProblemAttributes.put("ProblemNotAnalysed", SKIP);
+ expectedProblemAttributes.put("VarCannotBeMixedWithNonVarParams", SKIP);
+ expectedProblemAttributes.put("VarIsNotAllowedHere", SKIP);
+ expectedProblemAttributes.put("VarIsReserved", SKIP);
+ expectedProblemAttributes.put("VarIsReservedInFuture", SKIP);
+ expectedProblemAttributes.put("VarLocalCannotBeArray", SKIP);
+ expectedProblemAttributes.put("VarLocalCannotBeArrayInitalizers", SKIP);
+ expectedProblemAttributes.put("VarLocalCannotBeLambda", SKIP);
+ expectedProblemAttributes.put("VarLocalCannotBeMethodReference", SKIP);
+ expectedProblemAttributes.put("VarLocalInitializedToNull", SKIP);
+ expectedProblemAttributes.put("VarLocalInitializedToVoid", SKIP);
+ expectedProblemAttributes.put("VarLocalMultipleDeclarators", SKIP);
+ expectedProblemAttributes.put("VarLocalReferencesItself", SKIP);
+ expectedProblemAttributes.put("VarLocalTooManyBrackets", SKIP);
+ expectedProblemAttributes.put("VarLocalWithoutInitizalier", SKIP);
+ expectedProblemAttributes.put("SwitchExpressionsIncompatibleResultExpressionTypes",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionsEmptySwitchBlock",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionsNoResultExpression",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionSwitchLabeledBlockCompletesNormally",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionLastStatementCompletesNormally",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionTrailingSwitchLabels",SKIP);
+ expectedProblemAttributes.put("switchMixedCase", SKIP);
+ expectedProblemAttributes.put("SwitchExpressionMissingDefaultCase",SKIP);
+ expectedProblemAttributes.put("SwitchExpressionNotBelow12", SKIP);
+ expectedProblemAttributes.put("SwitchCaseLabelWithArrowNotBelow12", SKIP);
+ expectedProblemAttributes.put("SwitchExpressionPreviewDisabled", SKIP);
+ expectedProblemAttributes.put("SwitchCaseLabelWithArrowPreviewDisabled", SKIP);
+ expectedProblemAttributes.put("PreviewFeatureDisabled", SKIP);
+ expectedProblemAttributes.put("PreviewFeatureUsed", SKIP);
+ expectedProblemAttributes.put("PreviewFeatureNotSupported", SKIP);
+ Map constantNamesIndex = new HashMap();
+ Field[] fields = JavaCore.class.getFields();
+ for (int i = 0, length = fields.length; i < length; i++) {
+ Field field = fields[i];
+ String fieldName;
+ if (field.getType() == String.class && (fieldName = field.getName()).startsWith("COMPILER_PB_")) {
+ constantNamesIndex.put(field.get(null), fieldName);
+ }
}
- });
- for (int i = 0, length = fields.length; i < length; i++) {
- Field field = fields[i];
- if (field.getType() == Integer.TYPE) {
- int problemId = field.getInt(null), maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
- if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask) {
- String name = field.getName();
- ProblemAttributes expectedAttributes = (ProblemAttributes) expectedProblemAttributes.get(name);
- String actualTuningOption = JavaCore.getOptionForConfigurableSeverity(problemId);
- if (expectedAttributes == null) {
- failures.append("missing expected problem attributes for problem " + name + "\n");
- } else if (!expectedAttributes.skip && !expectedAttributes.option.equals(actualTuningOption)) {
- failures.append("tuning option mismatch for problem " + name + " (expected " + expectedAttributes.option + ", got " + actualTuningOption + ")\n");
+ fields = IProblem.class.getFields();
+ StringBuffer failures = new StringBuffer();
+ StringBuffer correctResult = new StringBuffer(70000);
+ Arrays.sort(fields, new Comparator() {
+ public int compare(Object o1, Object o2) {
+ Field field1 = (Field) o1;
+ Field field2 = (Field) o2;
+ return field1.getName().compareTo(field2.getName());
+ }
+ });
+ for (int i = 0, length = fields.length; i < length; i++) {
+ Field field = fields[i];
+ if (field.getType() == Integer.TYPE) {
+ int problemId = field.getInt(null), maskedProblemId = problemId & IProblem.IgnoreCategoriesMask;
+ if (maskedProblemId != 0 && maskedProblemId != IProblem.IgnoreCategoriesMask) {
+ String name = field.getName();
+ ProblemAttributes expectedAttributes = (ProblemAttributes) expectedProblemAttributes.get(name);
+ String actualTuningOption = JavaCore.getOptionForConfigurableSeverity(problemId);
+ if (expectedAttributes == null) {
+ failures.append("missing expected problem attributes for problem " + name + "\n");
+ } else if (!expectedAttributes.skip && !expectedAttributes.option.equals(actualTuningOption)) {
+ failures.append("tuning option mismatch for problem " + name + " (expected "
+ + expectedAttributes.option + ", got " + actualTuningOption + ")\n");
+ }
+ String optionFieldName = (String) constantNamesIndex.get(actualTuningOption);
+ correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", "
+ + (optionFieldName != null ? "new ProblemAttributes(JavaCore." + optionFieldName + ")"
+ : "SKIP")
+ + ");\n");
}
- String optionFieldName = (String) constantNamesIndex.get(actualTuningOption);
- correctResult.append("\t\texpectedProblemAttributes.put(\"" + name + "\", " +
- (optionFieldName != null ? "new ProblemAttributes(JavaCore." + optionFieldName + ")" :
- "SKIP") + ");\n");
}
}
+ if (failures.length() > 0) {
+ System.out.println(correctResult);
+ System.out.println();
+ }
+ assertEquals(failures.toString(), 0, failures.length());
+ } catch (IllegalAccessException e) {
+ fail("could not access members");
}
- if (failures.length() > 0) {
- System.out.println(correctResult);
- System.out.println();
- }
- assertEquals(failures.toString(), 0, failures.length());
}
- catch (IllegalAccessException e) {
- fail("could not access members");
- }
-}
}
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
index f896dcd1d4..11b81da1b2 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
@@ -7,7 +7,11 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java
index 473e42eba2..6f0892a5cd 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java
@@ -7,7 +7,11 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Jesper Steen Møller <jesper@selskabet.org> - contributions for:
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
index aa75d5bf73..74d784f409 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
@@ -2047,6 +2047,12 @@ void setSourceStart(int sourceStart);
int LambdaShapeComputationError = 1101;
/** @since 3.13 */
int ProblemNotAnalysed = 1102;
+ /** @since 3.16 BETA_JAVA_12 */
+ int PreviewFeatureDisabled = Syntax + 1103;
+ /** @since 3.16 BETA_JAVA_12 */
+ int PreviewFeatureUsed = Syntax + 1104;
+ /** @since 3.16 BETA_JAVA_12 */
+ int PreviewFeatureNotSupported = Syntax + 1105;
/** @since 3.13 */
int UnlikelyCollectionMethodArgumentType = 1200;
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ASTVisitor.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ASTVisitor.java
index 855237728b..c9cba847be 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ASTVisitor.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ASTVisitor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -7,7 +7,11 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BranchStatement.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BranchStatement.java
index aa5ba6b379..a73556b3cc 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BranchStatement.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BranchStatement.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java
index a35fdd3ad5..bc62b08a8f 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contribution for
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java
index 2206608054..849f870daa 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java
index 2de6ce1815..f2e854eea2 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contributions for
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java
index 802ab27d0f..c05e35f79c 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java
@@ -206,7 +206,8 @@ public class CompilerOptions {
public static final String OPTION_ReportAPILeak = "org.eclipse.jdt.core.compiler.problem.APILeak"; //$NON-NLS-1$
public static final String OPTION_ReportUnstableAutoModuleName = "org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName"; //$NON-NLS-1$
- public static final String OPTION_EnablePreviews = "org.eclipse.jdt.core.compiler.problem.EnablePreviews"; //$NON-NLS-1$
+ public static final String OPTION_EnablePreviews = "org.eclipse.jdt.core.compiler.problem.enablePreviews"; //$NON-NLS-1$
+ public static final String OPTION_ReportPreviewFeatures = "org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures"; //$NON-NLS-1$
/**
* Possible values for configurable options
@@ -338,8 +339,7 @@ public class CompilerOptions {
public static final int UsingTerminallyDeprecatedAPI = IrritantSet.GROUP2 | ASTNode.Bit24;
public static final int APILeak = IrritantSet.GROUP2 | ASTNode.Bit25;
public static final int UnstableAutoModuleName = IrritantSet.GROUP2 | ASTNode.Bit26;
- // Dummy feature, but
- //public static final int DummyPreviewFeatureWarning = IrritantSet.GROUP2 | ASTNode.Bit27;
+ public static final int PreviewFeatureUsed = IrritantSet.GROUP2 | ASTNode.Bit27;
// Severity level for handlers
@@ -1104,8 +1104,8 @@ public class CompilerOptions {
return "exports"; //$NON-NLS-1$
case UnstableAutoModuleName:
return "module"; //$NON-NLS-1$
- //case DummyPreviewFeatureWarning:
- // return "preview"; //$NON-NLS-1$
+ case PreviewFeatureUsed:
+ return "preview"; //$NON-NLS-1$
}
return null;
}
@@ -1356,6 +1356,7 @@ public class CompilerOptions {
optionsMap.put(OPTION_ReportAPILeak, getSeverityString(APILeak));
optionsMap.put(OPTION_ReportUnstableAutoModuleName, getSeverityString(UnstableAutoModuleName));
optionsMap.put(OPTION_EnablePreviews, this.enablePreviewFeatures ? ENABLED : DISABLED);
+ optionsMap.put(OPTION_ReportPreviewFeatures, getSeverityString(PreviewFeatureUsed));
return optionsMap;
}
@@ -2075,6 +2076,8 @@ public class CompilerOptions {
this.enablePreviewFeatures = false;
}
}
+ if ((optionValue = optionsMap.get(OPTION_ReportPreviewFeatures)) != null)
+ updateSeverity(PreviewFeatureUsed, optionValue);
}
private String[] stringToNameList(String optionValue) {
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IrritantSet.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IrritantSet.java
index 735f553600..d11500908d 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IrritantSet.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/IrritantSet.java
@@ -77,7 +77,7 @@ public class IrritantSet {
public static final IrritantSet MODULE = new IrritantSet(CompilerOptions.UnstableAutoModuleName);
public static final IrritantSet JAVADOC = new IrritantSet(CompilerOptions.InvalidJavadoc);
- public static final IrritantSet PREVIEW = new IrritantSet(0);
+ public static final IrritantSet PREVIEW = new IrritantSet(CompilerOptions.PreviewFeatureUsed);
public static final IrritantSet COMPILER_DEFAULT_ERRORS = new IrritantSet(0); // no optional error by default
public static final IrritantSet COMPILER_DEFAULT_WARNINGS = new IrritantSet(0); // see static initializer below
public static final IrritantSet COMPILER_DEFAULT_INFOS = new IrritantSet(0); // As of now, no default values
@@ -190,7 +190,6 @@ public class IrritantSet {
UNLIKELY_ARGUMENT_TYPE
.set(CompilerOptions.UnlikelyEqualsArgumentType);
- //PREVIEW.set(CompilerOptions.DummyPreviewFeatureWarning);
}
// Internal state
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/ParserBasicInformation.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/ParserBasicInformation.java
index e2d905e332..2be6c635c4 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/ParserBasicInformation.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/ParserBasicInformation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2014 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -7,7 +7,11 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
index 84a0100330..05fd504e2d 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contribution for bug 186342 - [compiler][null] Using annotations for null checking
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java
index 08b8d55379..bb91081b2a 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -8,6 +8,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
index 366c8f146e..cff7a7cf77 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
@@ -667,6 +667,8 @@ public static int getIrritant(int problemID) {
return CompilerOptions.APILeak;
case IProblem.UnstableAutoModuleName:
return CompilerOptions.UnstableAutoModuleName;
+ case IProblem.PreviewFeatureUsed:
+ return CompilerOptions.PreviewFeatureUsed;
}
return 0;
}
@@ -9253,6 +9255,32 @@ public void problemNotAnalysed(Expression token, String optionKey) {
token.sourceStart,
token.sourceEnd);
}
+public void previewFeatureNotEnabled(int sourceStart, int sourceEnd, String featureName) {
+ String[] args = new String[] {featureName};
+ this.handle(
+ IProblem.PreviewFeatureDisabled,
+ args,
+ args,
+ sourceStart,
+ sourceEnd);
+}
+public void previewFeatureUsed(int sourceStart, int sourceEnd) {
+ this.handle(
+ IProblem.PreviewFeatureUsed,
+ NoArgument,
+ NoArgument,
+ sourceStart,
+ sourceEnd);
+}
+public void previewFeatureNotSupported(int sourceStart, int sourceEnd, String sourceLevel) {
+ String[] args = new String[] {sourceLevel};
+ this.handle(
+ IProblem.PreviewFeatureNotSupported,
+ args,
+ args,
+ sourceStart,
+ sourceEnd);
+}
public void useAssertAsAnIdentifier(int sourceStart, int sourceEnd) {
this.handle(
IProblem.UseAssertAsAnIdentifier,
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
index 74c9bcb8a8..8f04e6efa6 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
@@ -881,6 +881,9 @@
1100 = Problem detected during type inference: {0}
#1101 is already used up but deprecated
1102 = At least one of the problems in category ''{0}'' is not analysed due to a compiler option being ignored
+1103 = {0} is a preview feature and disabled by default. Use --enable-preview to enable
+1104 = You are using a preview language feature that may or may not be supported in a future release
+1105 = This preview feature is only available with source level {0} and above
# more programming problems:
1200 = Unlikely argument type {0} for {1} on a {2}
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
index b86708bca9..2d59d086ff 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
@@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contribution for
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
index 1aad2d29dd..57dce4189e 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
@@ -2576,6 +2576,31 @@ public final class JavaCore extends Plugin {
public static final String CORE_MAIN_ONLY_PROJECT_HAS_TEST_ONLY_DEPENDENCY = PLUGIN_ID + ".classpath.mainOnlyProjectHasTestOnlyDependency"; //$NON-NLS-1$
/**
+ * Compiler option ID: Enabling support for preview language features.
+ * <p>When enabled, the compiler will activate the preview language features of this Java version.</p>
+ *
+ * <dl>
+ * <dt>Option id:</dt><dd><code>"org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures"</code></dd>
+ * <dt>Possible values:</dt><dd><code>{ "enabled", "disabled" }</code></dd>
+ * <dt>Default:</dt><dd><code>"enabled"</code></dd>
+ * </dl>
+ * @category CompilerOptionID
+ * @since 3.16 BETA_JAVA_12
+ */
+ public static final String COMPILER_PB_ENABLE_PREVIEW_FEATURES = PLUGIN_ID + ".compiler.problem.enablePreviewFeatures"; //$NON-NLS-1$
+ /**
+ * Compiler option ID: Reporting Unused Local.
+ * <p>When enabled, the compiler will issue an error or a warning when a preview feature is used</p>
+ * <dl>
+ * <dt>Option id:</dt><dd><code>"org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures"</code></dd>
+ * <dt>Possible values:</dt><dd><code>{ "error", "warning", "info", "ignore" }</code></dd>
+ * <dt>Default:</dt><dd><code>"warning"</code></dd>
+ * </dl>
+ * @category CompilerOptionID
+ * @since 3.16 BETA_JAVA_12
+ */
+ public static final String COMPILER_PB_REPORT_PREVIEW_FEATURES = PLUGIN_ID + ".compiler.problem.reportPreviewFeatures"; //$NON-NLS-1$
+ /**
* Core option ID: Set the timeout value for retrieving the method's parameter names from javadoc.
* <p>Timeout in milliseconds to retrieve the method's parameter names from javadoc.</p>
* <p>If the value is <code>0</code>, the parameter names are not fetched and the raw names are returned.</p>

Back to the top