Lines 331-336
Link Here
|
331 |
if (settings == null) return; |
331 |
if (settings == null) return; |
332 |
set(settings); |
332 |
set(settings); |
333 |
} |
333 |
} |
|
|
334 |
|
335 |
/** |
336 |
* Return all warning option names for use as keys in compiler options maps. |
337 |
* @return all warning option names |
338 |
*/ |
339 |
public static String[] warningOptionNames() { |
340 |
String[] result = { |
341 |
OPTION_ReportAnnotationSuperInterface, |
342 |
OPTION_ReportAssertIdentifier, |
343 |
OPTION_ReportAutoboxing, |
344 |
OPTION_ReportDeprecation, |
345 |
OPTION_ReportDiscouragedReference, |
346 |
OPTION_ReportEmptyStatement, |
347 |
OPTION_ReportEnumIdentifier, |
348 |
OPTION_ReportFieldHiding, |
349 |
OPTION_ReportFinalParameterBound, |
350 |
OPTION_ReportFinallyBlockNotCompletingNormally, |
351 |
OPTION_ReportForbiddenReference, |
352 |
OPTION_ReportHiddenCatchBlock, |
353 |
OPTION_ReportIncompatibleNonInheritedInterfaceMethod, |
354 |
OPTION_ReportIncompleteEnumSwitch, |
355 |
OPTION_ReportIndirectStaticAccess, |
356 |
OPTION_ReportInvalidJavadoc, |
357 |
OPTION_ReportLocalVariableHiding, |
358 |
OPTION_ReportMethodWithConstructorName, |
359 |
OPTION_ReportMissingDeprecatedAnnotation, |
360 |
OPTION_ReportMissingJavadocComments, |
361 |
OPTION_ReportMissingJavadocTags, |
362 |
OPTION_ReportMissingOverrideAnnotation, |
363 |
OPTION_ReportMissingSerialVersion, |
364 |
OPTION_ReportNoEffectAssignment, |
365 |
OPTION_ReportNoImplicitStringConversion, |
366 |
OPTION_ReportNonExternalizedStringLiteral, |
367 |
OPTION_ReportNonStaticAccessToStatic, |
368 |
OPTION_ReportNullReference, |
369 |
OPTION_ReportOverridingPackageDefaultMethod, |
370 |
OPTION_ReportPossibleAccidentalBooleanAssignment, |
371 |
OPTION_ReportSyntheticAccessEmulation, |
372 |
OPTION_ReportTypeParameterHiding, |
373 |
OPTION_ReportUncheckedTypeOperation, |
374 |
OPTION_ReportUndocumentedEmptyBlock, |
375 |
OPTION_ReportUnnecessaryElse, |
376 |
OPTION_ReportUnnecessaryTypeCheck, |
377 |
OPTION_ReportUnqualifiedFieldAccess, |
378 |
OPTION_ReportUnusedDeclaredThrownException, |
379 |
OPTION_ReportUnusedImport, |
380 |
OPTION_ReportUnusedLocal, |
381 |
OPTION_ReportUnusedParameter, |
382 |
OPTION_ReportUnusedPrivateMember, |
383 |
OPTION_ReportVarargsArgumentNeedCast |
384 |
}; |
385 |
return result; |
386 |
} |
334 |
|
387 |
|
335 |
public Map getMap() { |
388 |
public Map getMap() { |
336 |
Map optionsMap = new HashMap(30); |
389 |
Map optionsMap = new HashMap(30); |