Lines 101-107
Link Here
|
101 |
public static final String OPTION_ReportDiscouragedReference = "org.eclipse.jdt.core.compiler.problem.discouragedReference"; //$NON-NLS-1$ |
101 |
public static final String OPTION_ReportDiscouragedReference = "org.eclipse.jdt.core.compiler.problem.discouragedReference"; //$NON-NLS-1$ |
102 |
public static final String OPTION_SuppressWarnings = "org.eclipse.jdt.core.compiler.problem.suppressWarnings"; //$NON-NLS-1$ |
102 |
public static final String OPTION_SuppressWarnings = "org.eclipse.jdt.core.compiler.problem.suppressWarnings"; //$NON-NLS-1$ |
103 |
public static final String OPTION_ReportUnhandledWarningToken = "org.eclipse.jdt.core.compiler.problem.unhandledWarningToken"; //$NON-NLS-1$ |
103 |
public static final String OPTION_ReportUnhandledWarningToken = "org.eclipse.jdt.core.compiler.problem.unhandledWarningToken"; //$NON-NLS-1$ |
104 |
|
104 |
public static final String OPTION_SkipReferences = "org.eclipse.jdt.core.compiler.codegen.skipReferences"; //$NON-NLS-1$ |
105 |
// Backward compatibility |
105 |
// Backward compatibility |
106 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
106 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
107 |
public static final String OPTION_ReportMissingAnnotation = "org.eclipse.jdt.core.compiler.problem.missingAnnotation"; //$NON-NLS-1$ |
107 |
public static final String OPTION_ReportMissingAnnotation = "org.eclipse.jdt.core.compiler.problem.missingAnnotation"; //$NON-NLS-1$ |
Lines 292-297
Link Here
|
292 |
// suppress warning annotation |
292 |
// suppress warning annotation |
293 |
public boolean suppressWarnings = true; |
293 |
public boolean suppressWarnings = true; |
294 |
|
294 |
|
|
|
295 |
// skip compiling referenced classes |
296 |
public boolean skipReferences = false; |
297 |
|
295 |
/** |
298 |
/** |
296 |
* Initializing the compiler options with defaults |
299 |
* Initializing the compiler options with defaults |
297 |
*/ |
300 |
*/ |
Lines 387-392
Link Here
|
387 |
optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference)); |
390 |
optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference)); |
388 |
optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); |
391 |
optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); |
389 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
392 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
|
|
393 |
optionsMap.put(OPTION_SkipReferences, this.skipReferences ? ENABLED : DISABLED); |
390 |
return optionsMap; |
394 |
return optionsMap; |
391 |
} |
395 |
} |
392 |
|
396 |
|
Lines 570-575
Link Here
|
570 |
} |
574 |
} |
571 |
} |
575 |
} |
572 |
} |
576 |
} |
|
|
577 |
if ((optionValue = optionsMap.get(OPTION_SkipReferences)) != null) { |
578 |
if (ENABLED.equals(optionValue)) { |
579 |
this.skipReferences = true; |
580 |
} else if (DISABLED.equals(optionValue)) { |
581 |
this.skipReferences = false; |
582 |
} |
583 |
} |
573 |
if ((optionValue = optionsMap.get(OPTION_SuppressWarnings)) != null) { |
584 |
if ((optionValue = optionsMap.get(OPTION_SuppressWarnings)) != null) { |
574 |
if (ENABLED.equals(optionValue)) { |
585 |
if (ENABLED.equals(optionValue)) { |
575 |
this.suppressWarnings = true; |
586 |
this.suppressWarnings = true; |