Lines 87-92
Link Here
|
87 |
public static final String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference = "org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference"; //$NON-NLS-1$ |
87 |
public static final String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference = "org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference"; //$NON-NLS-1$ |
88 |
public static final String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable = "org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable"; //$NON-NLS-1$ |
88 |
public static final String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable = "org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable"; //$NON-NLS-1$ |
89 |
public static final String OPTION_ReportUnqualifiedFieldAccess = "org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess"; //$NON-NLS-1$ |
89 |
public static final String OPTION_ReportUnqualifiedFieldAccess = "org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess"; //$NON-NLS-1$ |
|
|
90 |
public static final String OPTION_ReportUnavoidableGenericTypeProblems = "org.eclipse.jdt.core.compiler.problem.UnavoidableGenericTypeProblems"; //$NON-NLS-1$ |
90 |
public static final String OPTION_ReportUncheckedTypeOperation = "org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation"; //$NON-NLS-1$ |
91 |
public static final String OPTION_ReportUncheckedTypeOperation = "org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation"; //$NON-NLS-1$ |
91 |
public static final String OPTION_ReportRawTypeReference = "org.eclipse.jdt.core.compiler.problem.rawTypeReference"; //$NON-NLS-1$ |
92 |
public static final String OPTION_ReportRawTypeReference = "org.eclipse.jdt.core.compiler.problem.rawTypeReference"; //$NON-NLS-1$ |
92 |
public static final String OPTION_ReportFinalParameterBound = "org.eclipse.jdt.core.compiler.problem.finalParameterBound"; //$NON-NLS-1$ |
93 |
public static final String OPTION_ReportFinalParameterBound = "org.eclipse.jdt.core.compiler.problem.finalParameterBound"; //$NON-NLS-1$ |
Lines 357-362
Link Here
|
357 |
public boolean ignoreMethodBodies; |
358 |
public boolean ignoreMethodBodies; |
358 |
/** Raise null related warnings for variables tainted inside an assert statement (java 1.4 and above)*/ |
359 |
/** Raise null related warnings for variables tainted inside an assert statement (java 1.4 and above)*/ |
359 |
public boolean includeNullInfoFromAsserts; |
360 |
public boolean includeNullInfoFromAsserts; |
|
|
361 |
/** Controls whether unavoidable generic type problems get reported (FIXME) */ |
362 |
public boolean reportUnavoidableGenericTypeProblems; |
360 |
|
363 |
|
361 |
// keep in sync with warningTokenToIrritant and warningTokenFromIrritant |
364 |
// keep in sync with warningTokenToIrritant and warningTokenFromIrritant |
362 |
public final static String[] warningTokens = { |
365 |
public final static String[] warningTokens = { |
Lines 871-876
Link Here
|
871 |
optionsMap.put(OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference, this.reportUnusedDeclaredThrownExceptionIncludeDocCommentReference ? ENABLED : DISABLED); |
874 |
optionsMap.put(OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference, this.reportUnusedDeclaredThrownExceptionIncludeDocCommentReference ? ENABLED : DISABLED); |
872 |
optionsMap.put(OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable, this.reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable ? ENABLED : DISABLED); |
875 |
optionsMap.put(OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable, this.reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable ? ENABLED : DISABLED); |
873 |
optionsMap.put(OPTION_ReportUnqualifiedFieldAccess, getSeverityString(UnqualifiedFieldAccess)); |
876 |
optionsMap.put(OPTION_ReportUnqualifiedFieldAccess, getSeverityString(UnqualifiedFieldAccess)); |
|
|
877 |
optionsMap.put(OPTION_ReportUnavoidableGenericTypeProblems, this.reportUnavoidableGenericTypeProblems ? ENABLED : DISABLED); |
874 |
optionsMap.put(OPTION_ReportUncheckedTypeOperation, getSeverityString(UncheckedTypeOperation)); |
878 |
optionsMap.put(OPTION_ReportUncheckedTypeOperation, getSeverityString(UncheckedTypeOperation)); |
875 |
optionsMap.put(OPTION_ReportRawTypeReference, getSeverityString(RawTypeReference)); |
879 |
optionsMap.put(OPTION_ReportRawTypeReference, getSeverityString(RawTypeReference)); |
876 |
optionsMap.put(OPTION_ReportFinalParameterBound, getSeverityString(FinalParameterBound)); |
880 |
optionsMap.put(OPTION_ReportFinalParameterBound, getSeverityString(FinalParameterBound)); |
Lines 1012-1017
Link Here
|
1012 |
// constructor/setter parameter hiding |
1016 |
// constructor/setter parameter hiding |
1013 |
this.reportSpecialParameterHidingField = false; |
1017 |
this.reportSpecialParameterHidingField = false; |
1014 |
|
1018 |
|
|
|
1019 |
this.reportUnavoidableGenericTypeProblems = true; |
1020 |
|
1015 |
// check javadoc comments tags |
1021 |
// check javadoc comments tags |
1016 |
this.reportInvalidJavadocTagsVisibility = ClassFileConstants.AccPublic; |
1022 |
this.reportInvalidJavadocTagsVisibility = ClassFileConstants.AccPublic; |
1017 |
this.reportInvalidJavadocTags = false; |
1023 |
this.reportInvalidJavadocTags = false; |
Lines 1193-1198
Link Here
|
1193 |
this.reportSpecialParameterHidingField = false; |
1199 |
this.reportSpecialParameterHidingField = false; |
1194 |
} |
1200 |
} |
1195 |
} |
1201 |
} |
|
|
1202 |
if ((optionValue = optionsMap.get(OPTION_ReportUnavoidableGenericTypeProblems)) != null) { |
1203 |
if (ENABLED.equals(optionValue)) { |
1204 |
this.reportUnavoidableGenericTypeProblems = true; |
1205 |
} else if (DISABLED.equals(optionValue)) { |
1206 |
this.reportUnavoidableGenericTypeProblems = false; |
1207 |
} |
1208 |
} |
1196 |
if ((optionValue = optionsMap.get(OPTION_ReportDeadCodeInTrivialIfStatement )) != null) { |
1209 |
if ((optionValue = optionsMap.get(OPTION_ReportDeadCodeInTrivialIfStatement )) != null) { |
1197 |
if (ENABLED.equals(optionValue)) { |
1210 |
if (ENABLED.equals(optionValue)) { |
1198 |
this.reportDeadCodeInTrivialIfStatement = true; |
1211 |
this.reportDeadCodeInTrivialIfStatement = true; |
Lines 1516-1521
Link Here
|
1516 |
buf.append("\n\t- report unused parameter include doc comment reference : ").append(this.reportUnusedParameterIncludeDocCommentReference ? ENABLED : DISABLED); //$NON-NLS-1$ |
1529 |
buf.append("\n\t- report unused parameter include doc comment reference : ").append(this.reportUnusedParameterIncludeDocCommentReference ? ENABLED : DISABLED); //$NON-NLS-1$ |
1517 |
buf.append("\n\t- report constructor/setter parameter hiding existing field : ").append(this.reportSpecialParameterHidingField ? ENABLED : DISABLED); //$NON-NLS-1$ |
1530 |
buf.append("\n\t- report constructor/setter parameter hiding existing field : ").append(this.reportSpecialParameterHidingField ? ENABLED : DISABLED); //$NON-NLS-1$ |
1518 |
buf.append("\n\t- inline JSR bytecode : ").append(this.inlineJsrBytecode ? ENABLED : DISABLED); //$NON-NLS-1$ |
1531 |
buf.append("\n\t- inline JSR bytecode : ").append(this.inlineJsrBytecode ? ENABLED : DISABLED); //$NON-NLS-1$ |
|
|
1532 |
buf.append("\n\t- report unavoidable generic type problems : ").append(this.reportUnavoidableGenericTypeProblems ? ENABLED : DISABLED); //$NON-NLS-1$ |
1519 |
buf.append("\n\t- unsafe type operation: ").append(getSeverityString(UncheckedTypeOperation)); //$NON-NLS-1$ |
1533 |
buf.append("\n\t- unsafe type operation: ").append(getSeverityString(UncheckedTypeOperation)); //$NON-NLS-1$ |
1520 |
buf.append("\n\t- unsafe raw type: ").append(getSeverityString(RawTypeReference)); //$NON-NLS-1$ |
1534 |
buf.append("\n\t- unsafe raw type: ").append(getSeverityString(RawTypeReference)); //$NON-NLS-1$ |
1521 |
buf.append("\n\t- final bound for type parameter: ").append(getSeverityString(FinalParameterBound)); //$NON-NLS-1$ |
1535 |
buf.append("\n\t- final bound for type parameter: ").append(getSeverityString(FinalParameterBound)); //$NON-NLS-1$ |