|
Lines 117-122
Link Here
|
| 117 |
public static final String OPTION_ReportOverridingMethodWithoutSuperInvocation = "org.eclipse.jdt.core.compiler.problem.overridingMethodWithoutSuperInvocation"; //$NON-NLS-1$ |
117 |
public static final String OPTION_ReportOverridingMethodWithoutSuperInvocation = "org.eclipse.jdt.core.compiler.problem.overridingMethodWithoutSuperInvocation"; //$NON-NLS-1$ |
| 118 |
public static final String OPTION_GenerateClassFiles = "org.eclipse.jdt.core.compiler.generateClassFiles"; //$NON-NLS-1$ |
118 |
public static final String OPTION_GenerateClassFiles = "org.eclipse.jdt.core.compiler.generateClassFiles"; //$NON-NLS-1$ |
| 119 |
public static final String OPTION_Process_Annotations = "org.eclipse.jdt.core.compiler.processAnnotations"; //$NON-NLS-1$ |
119 |
public static final String OPTION_Process_Annotations = "org.eclipse.jdt.core.compiler.processAnnotations"; //$NON-NLS-1$ |
|
|
120 |
public static final String OPTION_ReportRedundantSuperinterface = "org.eclipse.jdt.core.compiler.problem.redundantSuperinterface"; //$NON-NLS-1$ |
| 120 |
|
121 |
|
| 121 |
// Backward compatibility |
122 |
// Backward compatibility |
| 122 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
123 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
|
Lines 210-215
Link Here
|
| 210 |
public static final long MissingJavadocTagDescription = ASTNode.Bit53L; |
211 |
public static final long MissingJavadocTagDescription = ASTNode.Bit53L; |
| 211 |
public static final long UnusedTypeArguments = ASTNode.Bit54L; |
212 |
public static final long UnusedTypeArguments = ASTNode.Bit54L; |
| 212 |
public static final long UnusedWarningToken = ASTNode.Bit55L; |
213 |
public static final long UnusedWarningToken = ASTNode.Bit55L; |
|
|
214 |
public static final long RedundantSuperinterface = ASTNode.Bit56L; |
| 213 |
|
215 |
|
| 214 |
// Map: String optionKey --> Long irritant> |
216 |
// Map: String optionKey --> Long irritant> |
| 215 |
private static Map OptionToIrritants; |
217 |
private static Map OptionToIrritants; |
|
Lines 453-458
Link Here
|
| 453 |
optionsMap.put(OPTION_ReportOverridingMethodWithoutSuperInvocation, getSeverityString(OverridingMethodWithoutSuperInvocation)); |
455 |
optionsMap.put(OPTION_ReportOverridingMethodWithoutSuperInvocation, getSeverityString(OverridingMethodWithoutSuperInvocation)); |
| 454 |
optionsMap.put(OPTION_GenerateClassFiles, this.generateClassFiles ? ENABLED : DISABLED); |
456 |
optionsMap.put(OPTION_GenerateClassFiles, this.generateClassFiles ? ENABLED : DISABLED); |
| 455 |
optionsMap.put(OPTION_Process_Annotations, this.processAnnotations ? ENABLED : DISABLED); |
457 |
optionsMap.put(OPTION_Process_Annotations, this.processAnnotations ? ENABLED : DISABLED); |
|
|
458 |
optionsMap.put(OPTION_ReportRedundantSuperinterface, getSeverityString(RedundantSuperinterface)); |
| 456 |
return optionsMap; |
459 |
return optionsMap; |
| 457 |
} |
460 |
} |
| 458 |
|
461 |
|
|
Lines 581-586
Link Here
|
| 581 |
return OPTION_ReportUnusedTypeArgumentsForMethodInvocation; |
584 |
return OPTION_ReportUnusedTypeArgumentsForMethodInvocation; |
| 582 |
case (int)(UnusedWarningToken >>> 32) : |
585 |
case (int)(UnusedWarningToken >>> 32) : |
| 583 |
return OPTION_ReportUnusedWarningToken; |
586 |
return OPTION_ReportUnusedWarningToken; |
|
|
587 |
case (int)(RedundantSuperinterface >>> 32) : |
| 588 |
return OPTION_ReportRedundantSuperinterface; |
| 584 |
} |
589 |
} |
| 585 |
} |
590 |
} |
| 586 |
return null; |
591 |
return null; |
|
Lines 862-867
Link Here
|
| 862 |
if ((optionValue = optionsMap.get(OPTION_ReportFallthroughCase)) != null) updateSeverity(FallthroughCase, optionValue); |
867 |
if ((optionValue = optionsMap.get(OPTION_ReportFallthroughCase)) != null) updateSeverity(FallthroughCase, optionValue); |
| 863 |
if ((optionValue = optionsMap.get(OPTION_ReportOverridingMethodWithoutSuperInvocation)) != null) updateSeverity(OverridingMethodWithoutSuperInvocation, optionValue); |
868 |
if ((optionValue = optionsMap.get(OPTION_ReportOverridingMethodWithoutSuperInvocation)) != null) updateSeverity(OverridingMethodWithoutSuperInvocation, optionValue); |
| 864 |
if ((optionValue = optionsMap.get(OPTION_ReportUnusedTypeArgumentsForMethodInvocation)) != null) updateSeverity(UnusedTypeArguments, optionValue); |
869 |
if ((optionValue = optionsMap.get(OPTION_ReportUnusedTypeArgumentsForMethodInvocation)) != null) updateSeverity(UnusedTypeArguments, optionValue); |
|
|
870 |
if ((optionValue = optionsMap.get(OPTION_ReportRedundantSuperinterface)) != null) updateSeverity(RedundantSuperinterface, optionValue); |
| 865 |
|
871 |
|
| 866 |
// Javadoc options |
872 |
// Javadoc options |
| 867 |
if ((optionValue = optionsMap.get(OPTION_DocCommentSupport)) != null) { |
873 |
if ((optionValue = optionsMap.get(OPTION_DocCommentSupport)) != null) { |
|
Lines 1056-1061
Link Here
|
| 1056 |
buf.append("\n\t- generate class files: ").append(this.generateClassFiles ? ENABLED : DISABLED); //$NON-NLS-1$ |
1062 |
buf.append("\n\t- generate class files: ").append(this.generateClassFiles ? ENABLED : DISABLED); //$NON-NLS-1$ |
| 1057 |
buf.append("\n\t- process annotations: ").append(this.processAnnotations ? ENABLED : DISABLED); //$NON-NLS-1$ |
1063 |
buf.append("\n\t- process annotations: ").append(this.processAnnotations ? ENABLED : DISABLED); //$NON-NLS-1$ |
| 1058 |
buf.append("\n\t- unused type arguments for method/constructor invocation: ").append(getSeverityString(UnusedTypeArguments)); //$NON-NLS-1$ |
1064 |
buf.append("\n\t- unused type arguments for method/constructor invocation: ").append(getSeverityString(UnusedTypeArguments)); //$NON-NLS-1$ |
|
|
1065 |
buf.append("\n\t- redundant superinterface: ").append(getSeverityString(RedundantSuperinterface)); //$NON-NLS-1$ |
| 1059 |
return buf.toString(); |
1066 |
return buf.toString(); |
| 1060 |
} |
1067 |
} |
| 1061 |
|
1068 |
|
|
Lines 1178-1183
Link Here
|
| 1178 |
OPTION_ReportNullReference, |
1185 |
OPTION_ReportNullReference, |
| 1179 |
OPTION_ReportPotentialNullReference, |
1186 |
OPTION_ReportPotentialNullReference, |
| 1180 |
OPTION_ReportRedundantNullCheck, |
1187 |
OPTION_ReportRedundantNullCheck, |
|
|
1188 |
OPTION_ReportRedundantSuperinterface, |
| 1181 |
OPTION_ReportOverridingPackageDefaultMethod, |
1189 |
OPTION_ReportOverridingPackageDefaultMethod, |
| 1182 |
OPTION_ReportParameterAssignment, |
1190 |
OPTION_ReportParameterAssignment, |
| 1183 |
OPTION_ReportPossibleAccidentalBooleanAssignment, |
1191 |
OPTION_ReportPossibleAccidentalBooleanAssignment, |