|
Lines 50-56
Link Here
|
| 50 |
// Only the highest compliance level is run; add the VM argument |
50 |
// Only the highest compliance level is run; add the VM argument |
| 51 |
// -Dcompliance=1.4 (for example) to lower it if needed |
51 |
// -Dcompliance=1.4 (for example) to lower it if needed |
| 52 |
static { |
52 |
static { |
| 53 |
// TESTS_NAMES = new String[] { "test003_task_tags_options" }; |
53 |
TESTS_NAMES = new String[] { "test012_compiler_problems_tuning" }; |
| 54 |
// TESTS_NUMBERS = new int[] { 1 }; |
54 |
// TESTS_NUMBERS = new int[] { 1 }; |
| 55 |
// TESTS_RANGE = new int[] { 1, -1 }; |
55 |
// TESTS_RANGE = new int[] { 1, -1 }; |
| 56 |
// TESTS_RANGE = new int[] { 1, 2049 }; |
56 |
// TESTS_RANGE = new int[] { 1, 2049 }; |
|
Lines 422-429
Link Here
|
| 422 |
expectedProblemAttributes.put("DuplicateParameterizedMethods", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
422 |
expectedProblemAttributes.put("DuplicateParameterizedMethods", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 423 |
expectedProblemAttributes.put("DuplicateSuperInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
423 |
expectedProblemAttributes.put("DuplicateSuperInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 424 |
expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
424 |
expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
| 425 |
expectedProblemAttributes.put("DuplicateTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
|
|
| 426 |
expectedProblemAttributes.put("DuplicateTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
425 |
expectedProblemAttributes.put("DuplicateTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
|
|
426 |
expectedProblemAttributes.put("DuplicateTypes", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 427 |
expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
427 |
expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
| 428 |
expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
428 |
expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
| 429 |
expectedProblemAttributes.put("EndOfSource", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
429 |
expectedProblemAttributes.put("EndOfSource", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
|
Lines 452-460
Link Here
|
| 452 |
expectedProblemAttributes.put("FieldTypeNotVisible", DEPRECATED); |
452 |
expectedProblemAttributes.put("FieldTypeNotVisible", DEPRECATED); |
| 453 |
expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
453 |
expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
| 454 |
expectedProblemAttributes.put("FinalFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
454 |
expectedProblemAttributes.put("FinalFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 455 |
expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
|
|
| 456 |
expectedProblemAttributes.put("FinalMethodCannotBeOverridden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
455 |
expectedProblemAttributes.put("FinalMethodCannotBeOverridden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 457 |
expectedProblemAttributes.put("FinalOuterLocalAssignment", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
456 |
expectedProblemAttributes.put("FinalOuterLocalAssignment", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
|
|
457 |
expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
| 458 |
expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION)); |
458 |
expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(CategorizedProblem.CAT_RESTRICTION)); |
| 459 |
expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
459 |
expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 460 |
expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
460 |
expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
|
Lines 583-588
Link Here
|
| 583 |
expectedProblemAttributes.put("InvalidUnicodeEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
583 |
expectedProblemAttributes.put("InvalidUnicodeEscape", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 584 |
expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
584 |
expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 585 |
expectedProblemAttributes.put("InvalidUsageOfAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
585 |
expectedProblemAttributes.put("InvalidUsageOfAnnotations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
|
|
586 |
expectedProblemAttributes.put("InvalidUsageOfDiamondConstruct", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 586 |
expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
587 |
expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 587 |
expectedProblemAttributes.put("InvalidUsageOfForeachStatements", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
588 |
expectedProblemAttributes.put("InvalidUsageOfForeachStatements", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 588 |
expectedProblemAttributes.put("InvalidUsageOfStaticImports", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
589 |
expectedProblemAttributes.put("InvalidUsageOfStaticImports", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
|
Lines 646-654
Link Here
|
| 646 |
expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
647 |
expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 647 |
expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
648 |
expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 648 |
expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
649 |
expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
|
|
650 |
expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 649 |
expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
651 |
expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 650 |
expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
652 |
expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 651 |
expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
|
|
| 652 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
653 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 653 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
654 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 654 |
expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
655 |
expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
|
Lines 662-677
Link Here
|
| 662 |
expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
663 |
expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 663 |
expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
664 |
expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 664 |
expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
665 |
expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(CategorizedProblem.CAT_JAVADOC)); |
| 665 |
expectedProblemAttributes.put("LocalVariableCannotBeNull", DEPRECATED); |
|
|
| 666 |
expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", DEPRECATED); |
666 |
expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", DEPRECATED); |
|
|
667 |
expectedProblemAttributes.put("LocalVariableCannotBeNull", DEPRECATED); |
| 667 |
expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT)); |
668 |
expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT)); |
| 668 |
expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT)); |
669 |
expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT)); |
| 669 |
expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
670 |
expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
| 670 |
expectedProblemAttributes.put("LocalVariableMayBeNull", DEPRECATED); |
671 |
expectedProblemAttributes.put("LocalVariableMayBeNull", DEPRECATED); |
| 671 |
expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
672 |
expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
| 672 |
expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
673 |
expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
| 673 |
expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
|
|
| 674 |
expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
674 |
expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
|
|
675 |
expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
| 675 |
expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
676 |
expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
| 676 |
expectedProblemAttributes.put("MethodMustOverride", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
677 |
expectedProblemAttributes.put("MethodMustOverride", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 677 |
expectedProblemAttributes.put("MethodMustOverrideOrImplement", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
678 |
expectedProblemAttributes.put("MethodMustOverrideOrImplement", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
|
Lines 739-747
Link Here
|
| 739 |
expectedProblemAttributes.put("PackageCollidesWithType", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
740 |
expectedProblemAttributes.put("PackageCollidesWithType", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 740 |
expectedProblemAttributes.put("PackageIsNotExpectedPackage", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
741 |
expectedProblemAttributes.put("PackageIsNotExpectedPackage", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
| 741 |
expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
742 |
expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
|
|
743 |
expectedProblemAttributes.put("ParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 742 |
expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
744 |
expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 743 |
expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
745 |
expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 744 |
expectedProblemAttributes.put("ParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
|
|
| 745 |
expectedProblemAttributes.put("ParsingError", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
746 |
expectedProblemAttributes.put("ParsingError", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 746 |
expectedProblemAttributes.put("ParsingErrorDeleteToken", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
747 |
expectedProblemAttributes.put("ParsingErrorDeleteToken", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
| 747 |
expectedProblemAttributes.put("ParsingErrorDeleteTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
748 |
expectedProblemAttributes.put("ParsingErrorDeleteTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); |
|
Lines 789-794
Link Here
|
| 789 |
expectedProblemAttributes.put("StaticMemberOfParameterizedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
790 |
expectedProblemAttributes.put("StaticMemberOfParameterizedType", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 790 |
expectedProblemAttributes.put("StaticMethodRequested", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
791 |
expectedProblemAttributes.put("StaticMethodRequested", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
| 791 |
expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
792 |
expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
|
|
793 |
expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 794 |
expectedProblemAttributes.put("SuperInterfacesCollide", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 795 |
expectedProblemAttributes.put("SuperTypeUsingWildcard", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 792 |
expectedProblemAttributes.put("SuperclassAmbiguous", DEPRECATED); |
796 |
expectedProblemAttributes.put("SuperclassAmbiguous", DEPRECATED); |
| 793 |
expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", DEPRECATED); |
797 |
expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", DEPRECATED); |
| 794 |
expectedProblemAttributes.put("SuperclassInternalNameProvided", DEPRECATED); |
798 |
expectedProblemAttributes.put("SuperclassInternalNameProvided", DEPRECATED); |
|
Lines 796-804
Link Here
|
| 796 |
expectedProblemAttributes.put("SuperclassNotFound", DEPRECATED); |
800 |
expectedProblemAttributes.put("SuperclassNotFound", DEPRECATED); |
| 797 |
expectedProblemAttributes.put("SuperclassNotVisible", DEPRECATED); |
801 |
expectedProblemAttributes.put("SuperclassNotVisible", DEPRECATED); |
| 798 |
expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
802 |
expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); |
| 799 |
expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
|
|
| 800 |
expectedProblemAttributes.put("SuperInterfacesCollide", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 801 |
expectedProblemAttributes.put("SuperTypeUsingWildcard", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
| 802 |
expectedProblemAttributes.put("Task", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
803 |
expectedProblemAttributes.put("Task", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
| 803 |
expectedProblemAttributes.put("ThisInStaticContext", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
804 |
expectedProblemAttributes.put("ThisInStaticContext", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); |
| 804 |
expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
805 |
expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); |
|
Lines 846-852
Link Here
|
| 846 |
expectedProblemAttributes.put("UnnecessaryCast", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
847 |
expectedProblemAttributes.put("UnnecessaryCast", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
| 847 |
expectedProblemAttributes.put("UnnecessaryElse", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
848 |
expectedProblemAttributes.put("UnnecessaryElse", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
| 848 |
expectedProblemAttributes.put("UnnecessaryInstanceof", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
849 |
expectedProblemAttributes.put("UnnecessaryInstanceof", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
| 849 |
expectedProblemAttributes.put("UnnecessaryOperator", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE)); |
|
|
| 850 |
expectedProblemAttributes.put("UnnecessaryNLSTag", new ProblemAttributes(CategorizedProblem.CAT_NLS)); |
850 |
expectedProblemAttributes.put("UnnecessaryNLSTag", new ProblemAttributes(CategorizedProblem.CAT_NLS)); |
| 851 |
expectedProblemAttributes.put("UnqualifiedFieldAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
851 |
expectedProblemAttributes.put("UnqualifiedFieldAccess", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); |
| 852 |
expectedProblemAttributes.put("UnreachableCatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
852 |
expectedProblemAttributes.put("UnreachableCatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); |
|
Lines 1079-1086
Link Here
|
| 1079 |
expectedProblemAttributes.put("DuplicateParameterizedMethods", SKIP); |
1079 |
expectedProblemAttributes.put("DuplicateParameterizedMethods", SKIP); |
| 1080 |
expectedProblemAttributes.put("DuplicateSuperInterface", SKIP); |
1080 |
expectedProblemAttributes.put("DuplicateSuperInterface", SKIP); |
| 1081 |
expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", SKIP); |
1081 |
expectedProblemAttributes.put("DuplicateTargetInTargetAnnotation", SKIP); |
| 1082 |
expectedProblemAttributes.put("DuplicateTypes", SKIP); |
|
|
| 1083 |
expectedProblemAttributes.put("DuplicateTypeVariable", SKIP); |
1082 |
expectedProblemAttributes.put("DuplicateTypeVariable", SKIP); |
|
|
1083 |
expectedProblemAttributes.put("DuplicateTypes", SKIP); |
| 1084 |
expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT)); |
1084 |
expectedProblemAttributes.put("EmptyControlFlowStatement", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT)); |
| 1085 |
expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", SKIP); |
1085 |
expectedProblemAttributes.put("EnclosingInstanceInConstructorCall", SKIP); |
| 1086 |
expectedProblemAttributes.put("EndOfSource", SKIP); |
1086 |
expectedProblemAttributes.put("EndOfSource", SKIP); |
|
Lines 1109-1117
Link Here
|
| 1109 |
expectedProblemAttributes.put("FieldTypeNotVisible", SKIP); |
1109 |
expectedProblemAttributes.put("FieldTypeNotVisible", SKIP); |
| 1110 |
expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_FINAL_PARAMETER_BOUND)); |
1110 |
expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_FINAL_PARAMETER_BOUND)); |
| 1111 |
expectedProblemAttributes.put("FinalFieldAssignment", SKIP); |
1111 |
expectedProblemAttributes.put("FinalFieldAssignment", SKIP); |
| 1112 |
expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(JavaCore.COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING)); |
|
|
| 1113 |
expectedProblemAttributes.put("FinalMethodCannotBeOverridden", SKIP); |
1112 |
expectedProblemAttributes.put("FinalMethodCannotBeOverridden", SKIP); |
| 1114 |
expectedProblemAttributes.put("FinalOuterLocalAssignment", SKIP); |
1113 |
expectedProblemAttributes.put("FinalOuterLocalAssignment", SKIP); |
|
|
1114 |
expectedProblemAttributes.put("FinallyMustCompleteNormally", new ProblemAttributes(JavaCore.COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING)); |
| 1115 |
expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE)); |
1115 |
expectedProblemAttributes.put("ForbiddenReference", new ProblemAttributes(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE)); |
| 1116 |
expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", SKIP); |
1116 |
expectedProblemAttributes.put("GenericConstructorTypeArgumentMismatch", SKIP); |
| 1117 |
expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", SKIP); |
1117 |
expectedProblemAttributes.put("GenericMethodTypeArgumentMismatch", SKIP); |
|
Lines 1215-1221
Link Here
|
| 1215 |
expectedProblemAttributes.put("InvalidContinue", SKIP); |
1215 |
expectedProblemAttributes.put("InvalidContinue", SKIP); |
| 1216 |
expectedProblemAttributes.put("InvalidDigit", SKIP); |
1216 |
expectedProblemAttributes.put("InvalidDigit", SKIP); |
| 1217 |
expectedProblemAttributes.put("InvalidDisjunctiveTypeReferenceSequence", SKIP); |
1217 |
expectedProblemAttributes.put("InvalidDisjunctiveTypeReferenceSequence", SKIP); |
| 1218 |
expectedProblemAttributes.put("InvalidEmptyExoticIdentifier", SKIP); |
|
|
| 1219 |
expectedProblemAttributes.put("InvalidEncoding", SKIP); |
1218 |
expectedProblemAttributes.put("InvalidEncoding", SKIP); |
| 1220 |
expectedProblemAttributes.put("InvalidEscape", SKIP); |
1219 |
expectedProblemAttributes.put("InvalidEscape", SKIP); |
| 1221 |
expectedProblemAttributes.put("InvalidExplicitConstructorCall", SKIP); |
1220 |
expectedProblemAttributes.put("InvalidExplicitConstructorCall", SKIP); |
|
Lines 1241-1246
Link Here
|
| 1241 |
expectedProblemAttributes.put("InvalidUnicodeEscape", SKIP); |
1240 |
expectedProblemAttributes.put("InvalidUnicodeEscape", SKIP); |
| 1242 |
expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", SKIP); |
1241 |
expectedProblemAttributes.put("InvalidUsageOfAnnotationDeclarations", SKIP); |
| 1243 |
expectedProblemAttributes.put("InvalidUsageOfAnnotations", SKIP); |
1242 |
expectedProblemAttributes.put("InvalidUsageOfAnnotations", SKIP); |
|
|
1243 |
expectedProblemAttributes.put("InvalidUsageOfDiamondConstruct", SKIP); |
| 1244 |
expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", SKIP); |
1244 |
expectedProblemAttributes.put("InvalidUsageOfEnumDeclarations", SKIP); |
| 1245 |
expectedProblemAttributes.put("InvalidUsageOfForeachStatements", SKIP); |
1245 |
expectedProblemAttributes.put("InvalidUsageOfForeachStatements", SKIP); |
| 1246 |
expectedProblemAttributes.put("InvalidUsageOfStaticImports", SKIP); |
1246 |
expectedProblemAttributes.put("InvalidUsageOfStaticImports", SKIP); |
|
Lines 1304-1312
Link Here
|
| 1304 |
expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1304 |
expectedProblemAttributes.put("JavadocNotVisibleField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1305 |
expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1305 |
expectedProblemAttributes.put("JavadocNotVisibleMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1306 |
expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1306 |
expectedProblemAttributes.put("JavadocNotVisibleType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
|
|
1307 |
expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1307 |
expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1308 |
expectedProblemAttributes.put("JavadocParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1308 |
expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1309 |
expectedProblemAttributes.put("JavadocParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1309 |
expectedProblemAttributes.put("JavadocParameterMismatch", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
|
|
| 1310 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1310 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1311 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1311 |
expectedProblemAttributes.put("JavadocTypeArgumentsForRawGenericMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1312 |
expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1312 |
expectedProblemAttributes.put("JavadocUndefinedConstructor", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
|
Lines 1320-1335
Link Here
|
| 1320 |
expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1320 |
expectedProblemAttributes.put("JavadocUsingDeprecatedField", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1321 |
expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1321 |
expectedProblemAttributes.put("JavadocUsingDeprecatedMethod", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1322 |
expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
1322 |
expectedProblemAttributes.put("JavadocUsingDeprecatedType", new ProblemAttributes(JavaCore.COMPILER_PB_INVALID_JAVADOC)); |
| 1323 |
expectedProblemAttributes.put("LocalVariableCannotBeNull", SKIP); |
|
|
| 1324 |
expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", SKIP); |
1323 |
expectedProblemAttributes.put("LocalVariableCanOnlyBeNull", SKIP); |
|
|
1324 |
expectedProblemAttributes.put("LocalVariableCannotBeNull", SKIP); |
| 1325 |
expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING)); |
1325 |
expectedProblemAttributes.put("LocalVariableHidingField", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING)); |
| 1326 |
expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING)); |
1326 |
expectedProblemAttributes.put("LocalVariableHidingLocalVariable", new ProblemAttributes(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING)); |
| 1327 |
expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LOCAL)); |
1327 |
expectedProblemAttributes.put("LocalVariableIsNeverUsed", new ProblemAttributes(JavaCore.COMPILER_PB_UNUSED_LOCAL)); |
| 1328 |
expectedProblemAttributes.put("LocalVariableMayBeNull", SKIP); |
1328 |
expectedProblemAttributes.put("LocalVariableMayBeNull", SKIP); |
| 1329 |
expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(JavaCore.COMPILER_PB_HIDDEN_CATCH_BLOCK)); |
1329 |
expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(JavaCore.COMPILER_PB_HIDDEN_CATCH_BLOCK)); |
| 1330 |
expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(JavaCore.COMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME)); |
1330 |
expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(JavaCore.COMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME)); |
| 1331 |
expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_STATIC_ON_METHOD)); |
|
|
| 1332 |
expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD)); |
1331 |
expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD)); |
|
|
1332 |
expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_STATIC_ON_METHOD)); |
| 1333 |
expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION)); |
1333 |
expectedProblemAttributes.put("MethodMissingDeprecatedAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_DEPRECATED_ANNOTATION)); |
| 1334 |
expectedProblemAttributes.put("MethodMustOverride", SKIP); |
1334 |
expectedProblemAttributes.put("MethodMustOverride", SKIP); |
| 1335 |
expectedProblemAttributes.put("MethodMustOverrideOrImplement", SKIP); |
1335 |
expectedProblemAttributes.put("MethodMustOverrideOrImplement", SKIP); |
|
Lines 1343-1349
Link Here
|
| 1343 |
expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall", SKIP); |
1343 |
expectedProblemAttributes.put("MissingEnclosingInstanceForConstructorCall", SKIP); |
| 1344 |
expectedProblemAttributes.put("MissingEnumConstantCase", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH)); |
1344 |
expectedProblemAttributes.put("MissingEnumConstantCase", new ProblemAttributes(JavaCore.COMPILER_PB_INCOMPLETE_ENUM_SWITCH)); |
| 1345 |
expectedProblemAttributes.put("MissingOverrideAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION)); |
1345 |
expectedProblemAttributes.put("MissingOverrideAnnotation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION)); |
| 1346 |
expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation", SKIP); |
1346 |
expectedProblemAttributes.put("MissingOverrideAnnotationForInterfaceMethodImplementation", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_OVERRIDE_ANNOTATION)); |
| 1347 |
expectedProblemAttributes.put("MissingReturnType", SKIP); |
1347 |
expectedProblemAttributes.put("MissingReturnType", SKIP); |
| 1348 |
expectedProblemAttributes.put("MissingSemiColon", SKIP); |
1348 |
expectedProblemAttributes.put("MissingSemiColon", SKIP); |
| 1349 |
expectedProblemAttributes.put("MissingSerialVersion", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SERIAL_VERSION)); |
1349 |
expectedProblemAttributes.put("MissingSerialVersion", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_SERIAL_VERSION)); |
|
Lines 1397-1405
Link Here
|
| 1397 |
expectedProblemAttributes.put("PackageCollidesWithType", SKIP); |
1397 |
expectedProblemAttributes.put("PackageCollidesWithType", SKIP); |
| 1398 |
expectedProblemAttributes.put("PackageIsNotExpectedPackage", SKIP); |
1398 |
expectedProblemAttributes.put("PackageIsNotExpectedPackage", SKIP); |
| 1399 |
expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_PARAMETER_ASSIGNMENT)); |
1399 |
expectedProblemAttributes.put("ParameterAssignment", new ProblemAttributes(JavaCore.COMPILER_PB_PARAMETER_ASSIGNMENT)); |
|
|
1400 |
expectedProblemAttributes.put("ParameterMismatch", SKIP); |
| 1400 |
expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", SKIP); |
1401 |
expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", SKIP); |
| 1401 |
expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", SKIP); |
1402 |
expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", SKIP); |
| 1402 |
expectedProblemAttributes.put("ParameterMismatch", SKIP); |
|
|
| 1403 |
expectedProblemAttributes.put("ParsingError", SKIP); |
1403 |
expectedProblemAttributes.put("ParsingError", SKIP); |
| 1404 |
expectedProblemAttributes.put("ParsingErrorDeleteToken", SKIP); |
1404 |
expectedProblemAttributes.put("ParsingErrorDeleteToken", SKIP); |
| 1405 |
expectedProblemAttributes.put("ParsingErrorDeleteTokens", SKIP); |
1405 |
expectedProblemAttributes.put("ParsingErrorDeleteTokens", SKIP); |
|
Lines 1447-1462
Link Here
|
| 1447 |
expectedProblemAttributes.put("StaticMemberOfParameterizedType", SKIP); |
1447 |
expectedProblemAttributes.put("StaticMemberOfParameterizedType", SKIP); |
| 1448 |
expectedProblemAttributes.put("StaticMethodRequested", SKIP); |
1448 |
expectedProblemAttributes.put("StaticMethodRequested", SKIP); |
| 1449 |
expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", SKIP); |
1449 |
expectedProblemAttributes.put("StringConstantIsExceedingUtf8Limit", SKIP); |
| 1450 |
expectedProblemAttributes.put("SuperclassAmbiguous", SKIP); |
1450 |
expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", SKIP); |
|
|
1451 |
expectedProblemAttributes.put("SuperInterfacesCollide", SKIP); |
| 1452 |
expectedProblemAttributes.put("SuperTypeUsingWildcard", SKIP); |
| 1453 |
expectedProblemAttributes.put("SuperclassAmbiguous", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_HASHCODE_METHOD)); |
| 1451 |
expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", SKIP); |
1454 |
expectedProblemAttributes.put("SuperclassInheritedNameHidesEnclosingName", SKIP); |
| 1452 |
expectedProblemAttributes.put("SuperclassInternalNameProvided", SKIP); |
1455 |
expectedProblemAttributes.put("SuperclassInternalNameProvided", SKIP); |
| 1453 |
expectedProblemAttributes.put("SuperclassMustBeAClass", SKIP); |
1456 |
expectedProblemAttributes.put("SuperclassMustBeAClass", SKIP); |
| 1454 |
expectedProblemAttributes.put("SuperclassNotFound", SKIP); |
1457 |
expectedProblemAttributes.put("SuperclassNotFound", SKIP); |
| 1455 |
expectedProblemAttributes.put("SuperclassNotVisible", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE)); |
1458 |
expectedProblemAttributes.put("SuperclassNotVisible", new ProblemAttributes(JavaCore.COMPILER_PB_REDUNDANT_SUPERINTERFACE)); |
| 1456 |
expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT)); |
1459 |
expectedProblemAttributes.put("SuperfluousSemicolon", new ProblemAttributes(JavaCore.COMPILER_PB_EMPTY_STATEMENT)); |
| 1457 |
expectedProblemAttributes.put("SuperInterfaceMustBeAnInterface", SKIP); |
|
|
| 1458 |
expectedProblemAttributes.put("SuperInterfacesCollide", SKIP); |
| 1459 |
expectedProblemAttributes.put("SuperTypeUsingWildcard", SKIP); |
| 1460 |
expectedProblemAttributes.put("Task", SKIP); |
1460 |
expectedProblemAttributes.put("Task", SKIP); |
| 1461 |
expectedProblemAttributes.put("ThisInStaticContext", SKIP); |
1461 |
expectedProblemAttributes.put("ThisInStaticContext", SKIP); |
| 1462 |
expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", SKIP); |
1462 |
expectedProblemAttributes.put("ThisSuperDuringConstructorInvocation", SKIP); |