Example usage for org.eclipse.jdt.core JavaCore COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD

List of usage examples for org.eclipse.jdt.core JavaCore COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD

Introduction

In this page you can find the example usage for org.eclipse.jdt.core JavaCore COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD.

Prototype

String COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD

To view the source code for org.eclipse.jdt.core JavaCore COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD.

Click Source Link

Document

Compiler option ID: Reporting Missing Synchronized Modifier On Inherited Method.

Usage

From source file:org.eclipse.che.jdt.quickfix.ModifierCorrectionsQuickFixTest.java

License:Open Source License

@Before
public void setUp() throws Exception {
    super.setUp();
    Hashtable options = TestOptions.getDefaultOptions();
    options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, JavaCore.SPACE);
    options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE, "4");
    options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_LOCAL_VARIABLE,
            JavaCore.DO_NOT_INSERT);/*from w  w w.  j  a  v a  2s  . c om*/
    options.put(JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER, JavaCore.ERROR);
    options.put(JavaCore.COMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD, JavaCore.ERROR);

    JavaCore.setOptions(options);

    IPreferenceStore store = JavaPlugin.getDefault().getPreferenceStore();
    store.setValue(PreferenceConstants.CODEGEN_ADD_COMMENTS, false);

    fJProject1 = ProjectTestSetup.getProject();

    StubUtility.setCodeTemplate(CodeTemplateContextType.METHODSTUB_ID, "", null);
    StubUtility.setCodeTemplate(CodeTemplateContextType.CONSTRUCTORSTUB_ID, "", null);

    fSourceFolder = JavaProjectHelper.addSourceContainer(fJProject1, "src");
}