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 (-6 / +27 lines)
Lines 136-146 Link Here
136
	public static final String OPTION_IncludeNullInfoFromAsserts = "org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts";  //$NON-NLS-1$
136
	public static final String OPTION_IncludeNullInfoFromAsserts = "org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts";  //$NON-NLS-1$
137
	public static final String OPTION_ReportMethodCanBeStatic = "org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic";  //$NON-NLS-1$
137
	public static final String OPTION_ReportMethodCanBeStatic = "org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic";  //$NON-NLS-1$
138
	public static final String OPTION_ReportMethodCanBePotentiallyStatic = "org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic";  //$NON-NLS-1$
138
	public static final String OPTION_ReportMethodCanBePotentiallyStatic = "org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic";  //$NON-NLS-1$
139
	// Backward compatibility
140
	public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$
141
	public static final String OPTION_ReportMissingAnnotation = "org.eclipse.jdt.core.compiler.problem.missingAnnotation"; //$NON-NLS-1$
142
	public static final String OPTION_ReportMissingJavadoc = "org.eclipse.jdt.core.compiler.problem.missingJavadoc"; //$NON-NLS-1$
143
144
	/**
139
	/**
145
	 * Possible values for configurable options
140
	 * Possible values for configurable options
146
	 */
141
	 */
Lines 626-640 Link Here
626
	/**
621
	/**
627
	 * Return all warning option names for use as keys in compiler options maps.
622
	 * Return all warning option names for use as keys in compiler options maps.
628
	 * @return all warning option names
623
	 * @return all warning option names
629
	 * TODO (maxime) revise for ensuring completeness
630
	 */
624
	 */
631
	public static String[] warningOptionNames() {
625
	public static String[] warningOptionNames() {
632
		String[] result = {
626
		String[] result = {
633
			OPTION_ReportAnnotationSuperInterface,
627
			OPTION_ReportAnnotationSuperInterface,
634
			OPTION_ReportAssertIdentifier,
628
			OPTION_ReportAssertIdentifier,
635
			OPTION_ReportAutoboxing,
629
			OPTION_ReportAutoboxing,
630
			OPTION_ReportComparingIdentical,
636
			OPTION_ReportDeadCode,
631
			OPTION_ReportDeadCode,
632
			OPTION_ReportDeadCodeInTrivialIfStatement,
637
			OPTION_ReportDeprecation,
633
			OPTION_ReportDeprecation,
634
			OPTION_ReportDeprecationInDeprecatedCode,
635
			OPTION_ReportDeprecationWhenOverridingDeprecatedMethod,
638
			OPTION_ReportDiscouragedReference,
636
			OPTION_ReportDiscouragedReference,
639
			OPTION_ReportEmptyStatement,
637
			OPTION_ReportEmptyStatement,
640
			OPTION_ReportEnumIdentifier,
638
			OPTION_ReportEnumIdentifier,
Lines 648-663 Link Here
648
			OPTION_ReportIncompleteEnumSwitch,
646
			OPTION_ReportIncompleteEnumSwitch,
649
			OPTION_ReportIndirectStaticAccess,
647
			OPTION_ReportIndirectStaticAccess,
650
			OPTION_ReportInvalidJavadoc,
648
			OPTION_ReportInvalidJavadoc,
649
			OPTION_ReportInvalidJavadocTags,
650
			OPTION_ReportInvalidJavadocTagsDeprecatedRef,
651
			OPTION_ReportInvalidJavadocTagsNotVisibleRef,
652
			OPTION_ReportInvalidJavadocTagsVisibility,
651
			OPTION_ReportLocalVariableHiding,
653
			OPTION_ReportLocalVariableHiding,
652
			OPTION_ReportMethodCanBePotentiallyStatic,
654
			OPTION_ReportMethodCanBePotentiallyStatic,
653
			OPTION_ReportMethodCanBeStatic,
655
			OPTION_ReportMethodCanBeStatic,
654
			OPTION_ReportMethodWithConstructorName,
656
			OPTION_ReportMethodWithConstructorName,
655
			OPTION_ReportMissingDeprecatedAnnotation,
657
			OPTION_ReportMissingDeprecatedAnnotation,
658
			OPTION_ReportMissingHashCodeMethod,
656
			OPTION_ReportMissingJavadocComments,
659
			OPTION_ReportMissingJavadocComments,
660
			OPTION_ReportMissingJavadocCommentsOverriding,
661
			OPTION_ReportMissingJavadocCommentsVisibility,
657
			OPTION_ReportMissingJavadocTagDescription,
662
			OPTION_ReportMissingJavadocTagDescription,
658
			OPTION_ReportMissingJavadocTags,
663
			OPTION_ReportMissingJavadocTags,
664
			OPTION_ReportMissingJavadocTagsMethodTypeParameters,
665
			OPTION_ReportMissingJavadocTagsOverriding,
666
			OPTION_ReportMissingJavadocTagsVisibility,
659
			OPTION_ReportMissingOverrideAnnotation,
667
			OPTION_ReportMissingOverrideAnnotation,
668
			OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
660
			OPTION_ReportMissingSerialVersion,
669
			OPTION_ReportMissingSerialVersion,
670
			OPTION_ReportMissingSynchronizedOnInheritedMethod,
661
			OPTION_ReportNoEffectAssignment,
671
			OPTION_ReportNoEffectAssignment,
662
			OPTION_ReportNoImplicitStringConversion,
672
			OPTION_ReportNoImplicitStringConversion,
663
			OPTION_ReportNonExternalizedStringLiteral,
673
			OPTION_ReportNonExternalizedStringLiteral,
Lines 668-677 Link Here
668
			OPTION_ReportParameterAssignment,
678
			OPTION_ReportParameterAssignment,
669
			OPTION_ReportPossibleAccidentalBooleanAssignment,
679
			OPTION_ReportPossibleAccidentalBooleanAssignment,
670
			OPTION_ReportPotentialNullReference,
680
			OPTION_ReportPotentialNullReference,
681
			OPTION_ReportRawTypeReference,
671
			OPTION_ReportRedundantNullCheck,
682
			OPTION_ReportRedundantNullCheck,
672
			OPTION_ReportRedundantSuperinterface,
683
			OPTION_ReportRedundantSuperinterface,
684
			OPTION_ReportSpecialParameterHidingField,
673
			OPTION_ReportSyntheticAccessEmulation,
685
			OPTION_ReportSyntheticAccessEmulation,
686
			OPTION_ReportTasks,
674
			OPTION_ReportTypeParameterHiding,
687
			OPTION_ReportTypeParameterHiding,
688
			OPTION_ReportUnavoidableGenericTypeProblems,
675
			OPTION_ReportUncheckedTypeOperation,
689
			OPTION_ReportUncheckedTypeOperation,
676
			OPTION_ReportUndocumentedEmptyBlock,
690
			OPTION_ReportUndocumentedEmptyBlock,
677
			OPTION_ReportUnhandledWarningToken,
691
			OPTION_ReportUnhandledWarningToken,
Lines 679-688 Link Here
679
			OPTION_ReportUnnecessaryTypeCheck,
693
			OPTION_ReportUnnecessaryTypeCheck,
680
			OPTION_ReportUnqualifiedFieldAccess,
694
			OPTION_ReportUnqualifiedFieldAccess,
681
			OPTION_ReportUnusedDeclaredThrownException,
695
			OPTION_ReportUnusedDeclaredThrownException,
696
			OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable,
697
			OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference,
698
			OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding,
682
			OPTION_ReportUnusedImport,
699
			OPTION_ReportUnusedImport,
700
			OPTION_ReportUnusedLabel,
683
			OPTION_ReportUnusedLocal,
701
			OPTION_ReportUnusedLocal,
684
			OPTION_ReportUnusedObjectAllocation,
702
			OPTION_ReportUnusedObjectAllocation,
685
			OPTION_ReportUnusedParameter,
703
			OPTION_ReportUnusedParameter,
704
			OPTION_ReportUnusedParameterIncludeDocCommentReference,
705
			OPTION_ReportUnusedParameterWhenImplementingAbstract,
706
			OPTION_ReportUnusedParameterWhenOverridingConcrete,
686
			OPTION_ReportUnusedPrivateMember,
707
			OPTION_ReportUnusedPrivateMember,
687
			OPTION_ReportUnusedTypeArgumentsForMethodInvocation,
708
			OPTION_ReportUnusedTypeArgumentsForMethodInvocation,
688
			OPTION_ReportUnusedWarningToken,
709
			OPTION_ReportUnusedWarningToken,
(-)src/org/eclipse/jdt/core/tests/compiler/parser/SelectionJavadocTest.java (-2 / +1 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 173-179 Link Here
173
		optionsMap.put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED);
173
		optionsMap.put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED);
174
		optionsMap.put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING);
174
		optionsMap.put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING);
175
		optionsMap.put(CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.ENABLED);
175
		optionsMap.put(CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.ENABLED);
176
		optionsMap.put(CompilerOptions.OPTION_ReportMissingJavadoc, CompilerOptions.WARNING);
177
	    return optionsMap;
176
	    return optionsMap;
178
    }
177
    }
179
178
(-)src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java (-2 / +1 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 348-354 Link Here
348
public void test010() {
348
public void test010() {
349
	Map customOptions = getCompilerOptions();
349
	Map customOptions = getCompilerOptions();
350
	customOptions.put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED);
350
	customOptions.put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED);
351
	customOptions.put(CompilerOptions.OPTION_ReportInvalidAnnotation, CompilerOptions.WARNING);
352
	this.runNegativeTest(
351
	this.runNegativeTest(
353
		new String[] {
352
		new String[] {
354
            "X.java",
353
            "X.java",

Return to bug 333956