Index: compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java,v retrieving revision 1.126 diff -u -r1.126 CompilerOptions.java --- compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java 4 May 2005 11:31:09 -0000 1.126 +++ compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java 6 May 2005 11:06:44 -0000 @@ -331,6 +331,59 @@ if (settings == null) return; set(settings); } + + /** + * Return all warning option names for use as keys in compiler options maps. + * @return all warning option names + */ + public static String[] warningOptionNames() { + String[] result = { + OPTION_ReportAnnotationSuperInterface, + OPTION_ReportAssertIdentifier, + OPTION_ReportAutoboxing, + OPTION_ReportDeprecation, + OPTION_ReportDiscouragedReference, + OPTION_ReportEmptyStatement, + OPTION_ReportEnumIdentifier, + OPTION_ReportFieldHiding, + OPTION_ReportFinalParameterBound, + OPTION_ReportFinallyBlockNotCompletingNormally, + OPTION_ReportForbiddenReference, + OPTION_ReportHiddenCatchBlock, + OPTION_ReportIncompatibleNonInheritedInterfaceMethod, + OPTION_ReportIncompleteEnumSwitch, + OPTION_ReportIndirectStaticAccess, + OPTION_ReportInvalidJavadoc, + OPTION_ReportLocalVariableHiding, + OPTION_ReportMethodWithConstructorName, + OPTION_ReportMissingDeprecatedAnnotation, + OPTION_ReportMissingJavadocComments, + OPTION_ReportMissingJavadocTags, + OPTION_ReportMissingOverrideAnnotation, + OPTION_ReportMissingSerialVersion, + OPTION_ReportNoEffectAssignment, + OPTION_ReportNoImplicitStringConversion, + OPTION_ReportNonExternalizedStringLiteral, + OPTION_ReportNonStaticAccessToStatic, + OPTION_ReportNullReference, + OPTION_ReportOverridingPackageDefaultMethod, + OPTION_ReportPossibleAccidentalBooleanAssignment, + OPTION_ReportSyntheticAccessEmulation, + OPTION_ReportTypeParameterHiding, + OPTION_ReportUncheckedTypeOperation, + OPTION_ReportUndocumentedEmptyBlock, + OPTION_ReportUnnecessaryElse, + OPTION_ReportUnnecessaryTypeCheck, + OPTION_ReportUnqualifiedFieldAccess, + OPTION_ReportUnusedDeclaredThrownException, + OPTION_ReportUnusedImport, + OPTION_ReportUnusedLocal, + OPTION_ReportUnusedParameter, + OPTION_ReportUnusedPrivateMember, + OPTION_ReportVarargsArgumentNeedCast + }; + return result; + } public Map getMap() { Map optionsMap = new HashMap(30);