List of usage examples for org.eclipse.jdt.internal.compiler.impl CompilerOptions OPTION_ReportRawTypeReference
String OPTION_ReportRawTypeReference
To view the source code for org.eclipse.jdt.internal.compiler.impl CompilerOptions OPTION_ReportRawTypeReference.
Click Source Link
From source file:org.eclipse.objectteams.jdt.nullity.tests.NullAnnotationTest.java
License:Open Source License
protected Map getCompilerOptions() { Map defaultOptions = super.getCompilerOptions(); if (setNullRelatedOptions) { defaultOptions.put(CompilerOptions.OPTION_ReportNullReference, CompilerOptions.ERROR); defaultOptions.put(CompilerOptions.OPTION_ReportPotentialNullReference, CompilerOptions.ERROR); defaultOptions.put(CompilerOptions.OPTION_ReportRedundantNullCheck, CompilerOptions.ERROR); defaultOptions.put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.IGNORE); defaultOptions.put(CompilerOptions.OPTION_IncludeNullInfoFromAsserts, CompilerOptions.ENABLED); defaultOptions.put(/*from ww w .j a v a 2 s . c om*/ CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation, CompilerOptions.DISABLED); // enable null annotations: defaultOptions.put(NullCompilerOptions.OPTION_AnnotationBasedNullAnalysis, CompilerOptions.ENABLED); // leave other new options at these defaults: // defaultOptions.put(CompilerOptions.OPTION_ReportNullSpecViolation, CompilerOptions.ERROR); // defaultOptions.put(CompilerOptions.OPTION_ReportPotentialNullSpecViolation, CompilerOptions.ERROR); // defaultOptions.put(CompilerOptions.OPTION_ReportNullSpecInsufficientInfo, CompilerOptions.WARNING); // defaultOptions.put(CompilerOptions.OPTION_ReportRedundantNullAnnotation, CompilerOptions.WARNING); // defaultOptions.put(CompilerOptions.OPTION_NullableAnnotationName, "org.eclipse.jdt.annotation.Nullable"); // defaultOptions.put(CompilerOptions.OPTION_NonNullAnnotationName, "org.eclipse.jdt.annotation.NonNull"); } return defaultOptions; }
From source file:org.eclipse.objectteams.otdt.debug.tests.OTProjectCreationDecorator.java
License:Open Source License
public void testProjectCreation() throws Exception { // delete any pre-existing project IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject("DebugTests"); if (pro.exists()) { pro.delete(true, true, null);/*from ww w . j av a 2 s.c om*/ } IWorkspaceDescription wsDescription = ResourcesPlugin.getWorkspace().getDescription(); wsDescription.setAutoBuilding(false); ResourcesPlugin.getWorkspace().setDescription(wsDescription); // create & configure project and import source fJavaProject = org.eclipse.objectteams.otdt.ui.tests.util.JavaProjectHelper .createOTJavaProject("DebugTests", "bin"); fJavaProject.setOption(CompilerOptions.OPTION_ReportUncheckedTypeOperation, CompilerOptions.IGNORE); fJavaProject.setOption(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.IGNORE); fJavaProject.setOption(CompilerOptions.OPTION_ReportDeadCode, CompilerOptions.IGNORE); fJavaProject.setOption(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); IPackageFragmentRoot src = JavaProjectHelper.addSourceContainer(fJavaProject, "src"); //{ObjectTeams: rootfile-path is now org.eclipse.objectteams.otdt.debug.tests + "testprograms" File root = DebugTestsPlugin.getDefault().getPluginDirectoryPath(JavaProjectHelper.TEST_SRC_DIR); //ike} JavaProjectHelper.importFilesFromDirectory(root, src.getPath(), null); // import classfiles root = DebugTestsPlugin.getDefault().getPluginDirectoryPath(new Path("classfiles")); JavaProjectHelper.importFilesFromDirectory(root, src.getPath(), null); // add rt.jar IVMInstall vm = JavaRuntime.getDefaultVMInstall(); assertNotNull("No default JRE", vm); JavaProjectHelper.addContainerEntry(fJavaProject, new Path(JavaRuntime.JRE_CONTAINER)); //{ObjectTeams: add otre.jar: JavaProjectHelper.addContainerEntry(fJavaProject, new Path(OTREContainer.OTRE_CONTAINER_NAME)); // SH} pro = fJavaProject.getProject(); // all set up, can start auto-building now: wsDescription.setAutoBuilding(true); ResourcesPlugin.getWorkspace().setDescription(wsDescription); // create launch configuration folder IFolder folder = pro.getFolder("launchConfigurations"); if (folder.exists()) { folder.delete(true, null); } folder.create(true, true, null); // delete any existing launch configs ILaunchConfiguration[] configs = getLaunchManager().getLaunchConfigurations(); for (int i = 0; i < configs.length; i++) { configs[i].delete(); } // this one used by StratumTests: createLaunchConfiguration("Breakpoints"); //{ObjectTeams: own tests: createLaunchConfiguration("rofitests.RoFiTeam"); createLaunchConfiguration("copyinheritancetests.SubTeam"); createLaunchConfiguration("copyinheritancetests.SubTeam2"); createLaunchConfiguration("copyinheritancetests.SubTeam3"); // SH} }
From source file:org.jmlspecs.eclipse.jdt.core.tests.nonnull.NullTypeSystemTestJml2.java
License:Open Source License
@SuppressWarnings("unchecked") protected Map<String, String> getCompilerOptions() { Map<String, String> options = super.getCompilerOptions(); options.put(JmlCompilerOptions.OPTION_EnableJml, CompilerOptions.ENABLED); options.put(JmlCompilerOptions.OPTION_DefaultNullity, JmlCompilerOptions.NULLABLE); options.put(CompilerOptions.OPTION_ReportNullReference, CompilerOptions.ERROR); options.put(CompilerOptions.OPTION_ReportPotentialNullReference, CompilerOptions.ERROR); options.put(CompilerOptions.OPTION_ReportRedundantNullCheck, CompilerOptions.ERROR); options.put(JmlCompilerOptions.OPTION_ReportNonNullTypeSystem, CompilerOptions.ERROR); options.put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.IGNORE); options.put(CompilerOptions.OPTION_ReportUnnecessaryElse, CompilerOptions.IGNORE); options.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.IGNORE); options.put(JmlCompilerOptions.OPTION_SpecPath, NullTypeSystemTestCompiler.getSpecPath()); return options; }
From source file:org.thiesen.ecj4ant.Options.java
License:Open Source License
public static Map<String, String> warnAllOptions() { return new HashMap<String, String>() { private static final long serialVersionUID = 1L; {//w ww. j av a 2 s . co m put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_SuppressWarnings, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.WARNING); put(CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.WARNING); put(CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.WARNING); put(CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.WARNING); put(CompilerOptions.OPTION_PreserveUnusedLocal, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMethodWithConstructorName, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportOverridingPackageDefaultMethod, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportHiddenCatchBlock, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameterWhenImplementingAbstract, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameterWhenOverridingConcrete, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameterIncludeDocCommentReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportSyntheticAccessEmulation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNoEffectAssignment, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportLocalVariableHiding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportSpecialParameterHidingField, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportFieldHiding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportTypeParameterHiding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportPossibleAccidentalBooleanAssignment, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNonExternalizedStringLiteral, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportIncompatibleNonInheritedInterfaceMethod, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNoImplicitStringConversion, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportAssertIdentifier, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportEnumIdentifier, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNonStaticAccessToStatic, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportIndirectStaticAccess, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportEmptyStatement, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnnecessaryTypeCheck, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnnecessaryElse, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUndocumentedEmptyBlock, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsDeprecatedRef, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsNotVisibleRef, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsVisibility, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocTagsVisibility, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocTagsOverriding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocTagDescription, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocCommentsVisibility, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingJavadocCommentsOverriding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportFinallyBlockNotCompletingNormally, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnqualifiedFieldAccess, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUncheckedTypeOperation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportFinalParameterBound, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingSerialVersion, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportVarargsArgumentNeedCast, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNullReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportPotentialNullReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportRedundantNullCheck, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportAutoboxing, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportAnnotationSuperInterface, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingDeprecatedAnnotation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportIncompleteEnumSwitch, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportForbiddenReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDiscouragedReference, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnhandledWarningToken, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedWarningToken, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportParameterAssignment, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportFallthroughCase, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportOverridingMethodWithoutSuperInvocation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportRedundantSuperinterface, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportComparingIdentical, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportMissingHashCodeMethod, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDeadCode, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement, CompilerOptions.WARNING); } }; }
From source file:org.thiesen.ecj4ant.Options.java
License:Open Source License
public static Map<String, String> saneOptions() { return new HashMap<String, String>() { private static final long serialVersionUID = 1L; {/*ww w . j a va2s .c om*/ put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_SuppressWarnings, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.ERROR); put(CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.ERROR); put(CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.ERROR); put(CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.ERROR); put(CompilerOptions.OPTION_PreserveUnusedLocal, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMethodWithConstructorName, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportOverridingPackageDefaultMethod, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, CompilerOptions.DISABLED); put(CompilerOptions.OPTION_ReportHiddenCatchBlock, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportUnusedParameterWhenImplementingAbstract, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportUnusedParameterWhenOverridingConcrete, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportUnusedParameterIncludeDocCommentReference, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportSyntheticAccessEmulation, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportNoEffectAssignment, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportLocalVariableHiding, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportSpecialParameterHidingField, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportFieldHiding, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportTypeParameterHiding, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportPossibleAccidentalBooleanAssignment, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportNonExternalizedStringLiteral, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportIncompatibleNonInheritedInterfaceMethod, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportNoImplicitStringConversion, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportAssertIdentifier, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportEnumIdentifier, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportNonStaticAccessToStatic, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportIndirectStaticAccess, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportEmptyStatement, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnnecessaryTypeCheck, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnnecessaryElse, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUndocumentedEmptyBlock, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsDeprecatedRef, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsNotVisibleRef, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportInvalidJavadocTagsVisibility, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocTagsVisibility, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocTagsOverriding, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocTagDescription, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocCommentsVisibility, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportMissingJavadocCommentsOverriding, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportFinallyBlockNotCompletingNormally, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding, CompilerOptions.ENABLED); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnqualifiedFieldAccess, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportUncheckedTypeOperation, CompilerOptions.WARNING); put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportFinalParameterBound, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingSerialVersion, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportVarargsArgumentNeedCast, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportNullReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportPotentialNullReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportRedundantNullCheck, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportAutoboxing, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportAnnotationSuperInterface, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingDeprecatedAnnotation, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportIncompleteEnumSwitch, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportForbiddenReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportDiscouragedReference, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnhandledWarningToken, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedWarningToken, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportParameterAssignment, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportFallthroughCase, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportOverridingMethodWithoutSuperInvocation, CompilerOptions.IGNORE); put(CompilerOptions.OPTION_ReportRedundantSuperinterface, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportComparingIdentical, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportMissingHashCodeMethod, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportDeadCode, CompilerOptions.ERROR); put(CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement, CompilerOptions.ERROR); } }; }
From source file:processing.mode.java.pdex.ErrorCheckerService.java
License:Open Source License
/** Set compiler options for JDT Compiler */ protected void prepareCompilerSetting() { compilerSettings = new HashMap<String, String>(); compilerSettings.put(CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); compilerSettings.put(CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.GENERATE); compilerSettings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_8); compilerSettings.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportMissingSerialVersion, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportUncheckedTypeOperation, CompilerOptions.IGNORE); }
From source file:quarkninja.mode.xqmode.ErrorCheckerService.java
License:Open Source License
/** * Sets compiler options for JDT Compiler *//*from w ww. j a v a 2 s . com*/ @SuppressWarnings({ "unchecked", "rawtypes" }) protected void prepareCompilerSetting() { compilerSettings = new HashMap(); compilerSettings.put(CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); compilerSettings.put(CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.GENERATE); compilerSettings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6); compilerSettings.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportMissingSerialVersion, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportRawTypeReference, CompilerOptions.IGNORE); compilerSettings.put(CompilerOptions.OPTION_ReportUncheckedTypeOperation, CompilerOptions.IGNORE); }