View | Details | Raw Unified | Return to bug 236385 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java (-1 / +1 lines)
Lines 468-473 Link Here
468
			case CompilerOptions.MissingSynchronizedModifierInInheritedMethod :
468
			case CompilerOptions.MissingSynchronizedModifierInInheritedMethod :
469
			case CompilerOptions.ShouldImplementHashcode :
469
			case CompilerOptions.ShouldImplementHashcode :
470
			case CompilerOptions.DeadCode :
470
			case CompilerOptions.DeadCode :
471
			case CompilerOptions.UnusedObjectAllocation :
471
				return CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM;
472
				return CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM;
472
			
473
			
473
			case CompilerOptions.OverriddenPackageDefaultMethod :
474
			case CompilerOptions.OverriddenPackageDefaultMethod :
Lines 488-494 Link Here
488
			case CompilerOptions.UnusedWarningToken :
489
			case CompilerOptions.UnusedWarningToken :
489
			case CompilerOptions.UnusedLabel :
490
			case CompilerOptions.UnusedLabel :
490
			case CompilerOptions.RedundantSuperinterface :	
491
			case CompilerOptions.RedundantSuperinterface :	
491
			case CompilerOptions.UnusedObjectAllocation :
492
				return CategorizedProblem.CAT_UNNECESSARY_CODE;
492
				return CategorizedProblem.CAT_UNNECESSARY_CODE;
493
493
494
			case CompilerOptions.UsingDeprecatedAPI :
494
			case CompilerOptions.UsingDeprecatedAPI :
(-)src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java (-1 / +1 lines)
Lines 844-850 Link Here
844
		expectedProblemAttributes.put("UnusedImport", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
844
		expectedProblemAttributes.put("UnusedImport", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
845
		expectedProblemAttributes.put("UnusedLabel", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
845
		expectedProblemAttributes.put("UnusedLabel", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
846
		expectedProblemAttributes.put("UnusedMethodDeclaredThrownException", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
846
		expectedProblemAttributes.put("UnusedMethodDeclaredThrownException", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
847
		expectedProblemAttributes.put("UnusedObjectAllocation", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
847
		expectedProblemAttributes.put("UnusedObjectAllocation", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM));
848
		expectedProblemAttributes.put("UnusedPrivateConstructor", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
848
		expectedProblemAttributes.put("UnusedPrivateConstructor", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
849
		expectedProblemAttributes.put("UnusedPrivateField", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
849
		expectedProblemAttributes.put("UnusedPrivateField", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
850
		expectedProblemAttributes.put("UnusedPrivateMethod", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));
850
		expectedProblemAttributes.put("UnusedPrivateMethod", new ProblemAttributes(CategorizedProblem.CAT_UNNECESSARY_CODE));

Return to bug 236385