View | Details | Raw Unified | Return to bug 333956 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java (-59 / +88 lines)
Lines 626-693 Link Here
626
	/**
626
	/**
627
	 * Return all warning option names for use as keys in compiler options maps.
627
	 * Return all warning option names for use as keys in compiler options maps.
628
	 * @return all warning option names
628
	 * @return all warning option names
629
	 * TODO (maxime) revise for ensuring completeness
630
	 */
629
	 */
631
	public static String[] warningOptionNames() {
630
	public static String[] warningOptionNames() {
632
		String[] result = {
631
		String[] result = {
633
			OPTION_ReportAnnotationSuperInterface,
632
				OPTION_ReportMethodWithConstructorName,
634
			OPTION_ReportAssertIdentifier,
633
				OPTION_ReportOverridingPackageDefaultMethod,
635
			OPTION_ReportAutoboxing,
634
				OPTION_ReportDeprecation,
636
			OPTION_ReportDeadCode,
635
				OPTION_ReportDeprecationInDeprecatedCode,
637
			OPTION_ReportDeprecation,
636
				OPTION_ReportDeprecationWhenOverridingDeprecatedMethod,
638
			OPTION_ReportDiscouragedReference,
637
				OPTION_ReportHiddenCatchBlock,
639
			OPTION_ReportEmptyStatement,
638
				OPTION_ReportUnusedLocal,
640
			OPTION_ReportEnumIdentifier,
639
				OPTION_ReportUnusedParameter,
641
			OPTION_ReportFallthroughCase,
640
				OPTION_ReportUnusedParameterWhenImplementingAbstract,
642
			OPTION_ReportFieldHiding,
641
				OPTION_ReportUnusedParameterWhenOverridingConcrete,
643
			OPTION_ReportFinallyBlockNotCompletingNormally,
642
				OPTION_ReportUnusedParameterIncludeDocCommentReference,
644
			OPTION_ReportFinalParameterBound,
643
				OPTION_ReportUnusedImport,
645
			OPTION_ReportForbiddenReference,
644
				OPTION_ReportSyntheticAccessEmulation,
646
			OPTION_ReportHiddenCatchBlock,
645
				OPTION_ReportNoEffectAssignment,
647
			OPTION_ReportIncompatibleNonInheritedInterfaceMethod,
646
				OPTION_ReportLocalVariableHiding,
648
			OPTION_ReportIncompleteEnumSwitch,
647
				OPTION_ReportSpecialParameterHidingField,
649
			OPTION_ReportIndirectStaticAccess,
648
				OPTION_ReportFieldHiding,
650
			OPTION_ReportInvalidJavadoc,
649
				OPTION_ReportTypeParameterHiding,
651
			OPTION_ReportLocalVariableHiding,
650
				OPTION_ReportPossibleAccidentalBooleanAssignment,
652
			OPTION_ReportMethodCanBePotentiallyStatic,
651
				OPTION_ReportNonExternalizedStringLiteral,
653
			OPTION_ReportMethodCanBeStatic,
652
				OPTION_ReportIncompatibleNonInheritedInterfaceMethod,
654
			OPTION_ReportMethodWithConstructorName,
653
				OPTION_ReportUnusedPrivateMember,
655
			OPTION_ReportMissingDeprecatedAnnotation,
654
				OPTION_ReportNoImplicitStringConversion,
656
			OPTION_ReportMissingJavadocComments,
655
				OPTION_ReportAssertIdentifier,
657
			OPTION_ReportMissingJavadocTagDescription,
656
				OPTION_ReportEnumIdentifier,
658
			OPTION_ReportMissingJavadocTags,
657
				OPTION_ReportNonStaticAccessToStatic,
659
			OPTION_ReportMissingOverrideAnnotation,
658
				OPTION_ReportIndirectStaticAccess,
660
			OPTION_ReportMissingSerialVersion,
659
				OPTION_ReportEmptyStatement,
661
			OPTION_ReportNoEffectAssignment,
660
				OPTION_ReportUnnecessaryTypeCheck,
662
			OPTION_ReportNoImplicitStringConversion,
661
				OPTION_ReportUnnecessaryElse,
663
			OPTION_ReportNonExternalizedStringLiteral,
662
				OPTION_ReportUndocumentedEmptyBlock,
664
			OPTION_ReportNonStaticAccessToStatic,
663
				OPTION_ReportInvalidJavadoc,
665
			OPTION_ReportNullReference,
664
				OPTION_ReportInvalidJavadocTags,
666
			OPTION_ReportOverridingMethodWithoutSuperInvocation,
665
				OPTION_ReportInvalidJavadocTagsDeprecatedRef,
667
			OPTION_ReportOverridingPackageDefaultMethod,
666
				OPTION_ReportInvalidJavadocTagsNotVisibleRef,
668
			OPTION_ReportParameterAssignment,
667
				OPTION_ReportInvalidJavadocTagsVisibility,
669
			OPTION_ReportPossibleAccidentalBooleanAssignment,
668
				OPTION_ReportMissingJavadocTags,
670
			OPTION_ReportPotentialNullReference,
669
				OPTION_ReportMissingJavadocTagsVisibility,
671
			OPTION_ReportRedundantNullCheck,
670
				OPTION_ReportMissingJavadocTagsOverriding,
672
			OPTION_ReportRedundantSuperinterface,
671
				OPTION_ReportMissingJavadocTagsMethodTypeParameters,
673
			OPTION_ReportSyntheticAccessEmulation,
672
				OPTION_ReportMissingJavadocComments,
674
			OPTION_ReportTypeParameterHiding,
673
				OPTION_ReportMissingJavadocTagDescription,
675
			OPTION_ReportUncheckedTypeOperation,
674
				OPTION_ReportMissingJavadocCommentsVisibility,
676
			OPTION_ReportUndocumentedEmptyBlock,
675
				OPTION_ReportMissingJavadocCommentsOverriding,
677
			OPTION_ReportUnhandledWarningToken,
676
				OPTION_ReportFinallyBlockNotCompletingNormally,
678
			OPTION_ReportUnnecessaryElse,
677
				OPTION_ReportUnusedDeclaredThrownException,
679
			OPTION_ReportUnnecessaryTypeCheck,
678
				OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding,
680
			OPTION_ReportUnqualifiedFieldAccess,
679
				OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference,
681
			OPTION_ReportUnusedDeclaredThrownException,
680
				OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable,
682
			OPTION_ReportUnusedImport,
681
				OPTION_ReportUnqualifiedFieldAccess,
683
			OPTION_ReportUnusedLocal,
682
				OPTION_ReportUnavoidableGenericTypeProblems,
684
			OPTION_ReportUnusedObjectAllocation,
683
				OPTION_ReportUncheckedTypeOperation,
685
			OPTION_ReportUnusedParameter,
684
				OPTION_ReportRawTypeReference,
686
			OPTION_ReportUnusedPrivateMember,
685
				OPTION_ReportFinalParameterBound,
687
			OPTION_ReportUnusedTypeArgumentsForMethodInvocation,
686
				OPTION_ReportMissingSerialVersion,
688
			OPTION_ReportUnusedWarningToken,
687
				OPTION_ReportVarargsArgumentNeedCast,
689
			OPTION_ReportVarargsArgumentNeedCast,
688
				OPTION_ReportUnusedTypeArgumentsForMethodInvocation,
690
		};
689
				OPTION_ReportNullReference,
690
				OPTION_ReportPotentialNullReference,
691
				OPTION_ReportRedundantNullCheck,
692
				OPTION_ReportAutoboxing,
693
				OPTION_ReportAnnotationSuperInterface,
694
				OPTION_ReportMissingOverrideAnnotation,
695
				OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
696
				OPTION_ReportMissingDeprecatedAnnotation,
697
				OPTION_ReportIncompleteEnumSwitch,
698
				OPTION_ReportForbiddenReference,
699
				OPTION_ReportDiscouragedReference,
700
				OPTION_ReportUnhandledWarningToken,
701
				OPTION_ReportUnusedWarningToken,
702
				OPTION_ReportUnusedLabel,
703
				OPTION_ReportParameterAssignment,
704
				OPTION_ReportFallthroughCase,
705
				OPTION_ReportOverridingMethodWithoutSuperInvocation,
706
				OPTION_ReportRedundantSuperinterface,
707
				OPTION_ReportComparingIdentical,
708
				OPTION_ReportMissingSynchronizedOnInheritedMethod,
709
				OPTION_ReportMissingHashCodeMethod,
710
				OPTION_ReportDeadCode,
711
				OPTION_ReportDeadCodeInTrivialIfStatement,
712
				OPTION_ReportTasks,
713
				OPTION_ReportUnusedObjectAllocation,
714
				OPTION_ReportMethodCanBeStatic,
715
				OPTION_ReportMethodCanBePotentiallyStatic,
716
				OPTION_ReportInvalidAnnotation,
717
				OPTION_ReportMissingAnnotation,
718
				OPTION_ReportMissingJavadoc
719
			};
691
		return result;
720
		return result;
692
	}
721
	}
693
722

Return to bug 333956