Lines 94-99
Link Here
|
94 |
public static final String OPTION_TaskCaseSensitive = "org.eclipse.jdt.core.compiler.taskCaseSensitive"; //$NON-NLS-1$ |
94 |
public static final String OPTION_TaskCaseSensitive = "org.eclipse.jdt.core.compiler.taskCaseSensitive"; //$NON-NLS-1$ |
95 |
public static final String OPTION_InlineJsr = "org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode"; //$NON-NLS-1$ |
95 |
public static final String OPTION_InlineJsr = "org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode"; //$NON-NLS-1$ |
96 |
public static final String OPTION_ReportNullReference = "org.eclipse.jdt.core.compiler.problem.nullReference"; //$NON-NLS-1$ |
96 |
public static final String OPTION_ReportNullReference = "org.eclipse.jdt.core.compiler.problem.nullReference"; //$NON-NLS-1$ |
|
|
97 |
public static final String OPTION_ReportNullDereference = "org.eclipse.jdt.core.compiler.problem.nullDereference"; //$NON-NLS-1$ |
97 |
public static final String OPTION_ReportAutoboxing = "org.eclipse.jdt.core.compiler.problem.autoboxing"; //$NON-NLS-1$ |
98 |
public static final String OPTION_ReportAutoboxing = "org.eclipse.jdt.core.compiler.problem.autoboxing"; //$NON-NLS-1$ |
98 |
public static final String OPTION_ReportAnnotationSuperInterface = "org.eclipse.jdt.core.compiler.problem.annotationSuperInterface"; //$NON-NLS-1$ |
99 |
public static final String OPTION_ReportAnnotationSuperInterface = "org.eclipse.jdt.core.compiler.problem.annotationSuperInterface"; //$NON-NLS-1$ |
99 |
public static final String OPTION_ReportMissingOverrideAnnotation = "org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation"; //$NON-NLS-1$ |
100 |
public static final String OPTION_ReportMissingOverrideAnnotation = "org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation"; //$NON-NLS-1$ |
Lines 181-186
Link Here
|
181 |
public static final long ForbiddenReference = ASTNode.Bit35L; |
182 |
public static final long ForbiddenReference = ASTNode.Bit35L; |
182 |
public static final long VarargsArgumentNeedCast = ASTNode.Bit36L; |
183 |
public static final long VarargsArgumentNeedCast = ASTNode.Bit36L; |
183 |
public static final long NullReference = ASTNode.Bit37L; |
184 |
public static final long NullReference = ASTNode.Bit37L; |
|
|
185 |
//* DSRG: can we use bit 51? |
186 |
public static final long NullDereference = ASTNode.Bit51L; |
184 |
public static final long AutoBoxing = ASTNode.Bit38L; |
187 |
public static final long AutoBoxing = ASTNode.Bit38L; |
185 |
public static final long AnnotationSuperInterface = ASTNode.Bit39L; |
188 |
public static final long AnnotationSuperInterface = ASTNode.Bit39L; |
186 |
public static final long TypeHiding = ASTNode.Bit40L; |
189 |
public static final long TypeHiding = ASTNode.Bit40L; |
Lines 413-418
Link Here
|
413 |
optionsMap.put(OPTION_MaxProblemPerUnit, String.valueOf(this.maxProblemsPerUnit)); |
416 |
optionsMap.put(OPTION_MaxProblemPerUnit, String.valueOf(this.maxProblemsPerUnit)); |
414 |
optionsMap.put(OPTION_InlineJsr, this.inlineJsrBytecode ? ENABLED : DISABLED); |
417 |
optionsMap.put(OPTION_InlineJsr, this.inlineJsrBytecode ? ENABLED : DISABLED); |
415 |
optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference)); |
418 |
optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference)); |
|
|
419 |
optionsMap.put(OPTION_ReportNullDereference, getSeverityString(NullDereference)); |
416 |
optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); |
420 |
optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); |
417 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
421 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
418 |
optionsMap.put(OPTION_ReportParameterAssignment, getSeverityString(ParameterAssignment)); |
422 |
optionsMap.put(OPTION_ReportParameterAssignment, getSeverityString(ParameterAssignment)); |
Lines 652-657
Link Here
|
652 |
if ((optionValue = optionsMap.get(OPTION_ReportDiscouragedReference)) != null) updateSeverity(DiscouragedReference, optionValue); |
656 |
if ((optionValue = optionsMap.get(OPTION_ReportDiscouragedReference)) != null) updateSeverity(DiscouragedReference, optionValue); |
653 |
if ((optionValue = optionsMap.get(OPTION_ReportVarargsArgumentNeedCast)) != null) updateSeverity(VarargsArgumentNeedCast, optionValue); |
657 |
if ((optionValue = optionsMap.get(OPTION_ReportVarargsArgumentNeedCast)) != null) updateSeverity(VarargsArgumentNeedCast, optionValue); |
654 |
if ((optionValue = optionsMap.get(OPTION_ReportNullReference)) != null) updateSeverity(NullReference, optionValue); |
658 |
if ((optionValue = optionsMap.get(OPTION_ReportNullReference)) != null) updateSeverity(NullReference, optionValue); |
|
|
659 |
if ((optionValue = optionsMap.get(OPTION_ReportNullDereference)) != null) updateSeverity(NullDereference, optionValue); |
655 |
if ((optionValue = optionsMap.get(OPTION_ReportAutoboxing)) != null) updateSeverity(AutoBoxing, optionValue); |
660 |
if ((optionValue = optionsMap.get(OPTION_ReportAutoboxing)) != null) updateSeverity(AutoBoxing, optionValue); |
656 |
if ((optionValue = optionsMap.get(OPTION_ReportAnnotationSuperInterface)) != null) updateSeverity(AnnotationSuperInterface, optionValue); |
661 |
if ((optionValue = optionsMap.get(OPTION_ReportAnnotationSuperInterface)) != null) updateSeverity(AnnotationSuperInterface, optionValue); |
657 |
if ((optionValue = optionsMap.get(OPTION_ReportMissingOverrideAnnotation)) != null) updateSeverity(MissingOverrideAnnotation, optionValue); |
662 |
if ((optionValue = optionsMap.get(OPTION_ReportMissingOverrideAnnotation)) != null) updateSeverity(MissingOverrideAnnotation, optionValue); |
Lines 959-964
Link Here
|
959 |
OPTION_ReportNonExternalizedStringLiteral, |
964 |
OPTION_ReportNonExternalizedStringLiteral, |
960 |
OPTION_ReportNonStaticAccessToStatic, |
965 |
OPTION_ReportNonStaticAccessToStatic, |
961 |
OPTION_ReportNullReference, |
966 |
OPTION_ReportNullReference, |
|
|
967 |
OPTION_ReportNullDereference, |
962 |
OPTION_ReportOverridingPackageDefaultMethod, |
968 |
OPTION_ReportOverridingPackageDefaultMethod, |
963 |
OPTION_ReportParameterAssignment, |
969 |
OPTION_ReportParameterAssignment, |
964 |
OPTION_ReportPossibleAccidentalBooleanAssignment, |
970 |
OPTION_ReportPossibleAccidentalBooleanAssignment, |
Lines 1037-1042
Link Here
|
1037 |
return "restriction"; //$NON-NLS-1$ |
1043 |
return "restriction"; //$NON-NLS-1$ |
1038 |
case (int) (NullReference >>> 32) : |
1044 |
case (int) (NullReference >>> 32) : |
1039 |
return "null"; //$NON-NLS-1$ |
1045 |
return "null"; //$NON-NLS-1$ |
|
|
1046 |
case (int) (NullDereference >>> 32) : |
1047 |
return "nullDereference"; //$NON-NLS-1$ |
1040 |
case (int) (FallthroughCase >>> 32) : |
1048 |
case (int) (FallthroughCase >>> 32) : |
1041 |
return "fallthrough"; //$NON-NLS-1$ |
1049 |
return "fallthrough"; //$NON-NLS-1$ |
1042 |
case (int) (OverridingMethodWithoutSuperInvocation >>> 32) : |
1050 |
case (int) (OverridingMethodWithoutSuperInvocation >>> 32) : |
Lines 1058-1063
Link Here
|
1058 |
"incomplete-switch", //$NON-NLS-1$ |
1066 |
"incomplete-switch", //$NON-NLS-1$ |
1059 |
"nls", //$NON-NLS-1$ |
1067 |
"nls", //$NON-NLS-1$ |
1060 |
"null", //$NON-NLS-1$ |
1068 |
"null", //$NON-NLS-1$ |
|
|
1069 |
"nullDereference", //$NON-NLS-1$ |
1061 |
"restriction", //$NON-NLS-1$ |
1070 |
"restriction", //$NON-NLS-1$ |
1062 |
"serial", //$NON-NLS-1$ |
1071 |
"serial", //$NON-NLS-1$ |
1063 |
"static-access", //$NON-NLS-1$ |
1072 |
"static-access", //$NON-NLS-1$ |
Lines 1107-1112
Link Here
|
1107 |
return NonExternalizedString; |
1116 |
return NonExternalizedString; |
1108 |
if ("null".equals(warningToken)) //$NON-NLS-1$ |
1117 |
if ("null".equals(warningToken)) //$NON-NLS-1$ |
1109 |
return NullReference; |
1118 |
return NullReference; |
|
|
1119 |
if ("nullDereference".equals(warningToken)) //$NON-NLS-1$ |
1120 |
return NullDereference; |
1110 |
break; |
1121 |
break; |
1111 |
case 'r' : |
1122 |
case 'r' : |
1112 |
if ("restriction".equals(warningToken)) //$NON-NLS-1$ |
1123 |
if ("restriction".equals(warningToken)) //$NON-NLS-1$ |