public static CompilerOptions createCheckSyntaxOptions(
            DeprecationWarnings deprecationWarnings) {

        Pattern debugNsInclude = null;
        Pattern debugNsExclude = null;
        int maxIteration = 5000;
        int maxRecursion = 50;
        Set<Formatter> formatters = new HashSet<Formatter>();
        File outputDirectory = null;
        File annotationDirectory = null;
        File annotationBaseDirectory = null;
        LinkedList<File> includeDirectories = new LinkedList<File>();

        try {
            return new CompilerOptions(debugNsInclude, debugNsExclude,
                    maxIteration, maxRecursion, formatters, outputDirectory,
                    includeDirectories, deprecationWarnings,
                    annotationDirectory, annotationBaseDirectory, null, 0);

        } catch (SyntaxException consumed) {
            throw CompilerError.create(MSG_FILE_BUG_REPORT);
        }
    }
public static CompilerOptions createCheckSyntaxOptions ( DeprecationWarnings deprecationWarnings ) { Pattern debugNsInclude = null ; Pattern debugNsExclude = null ; int maxIteration = 5000 ; int maxRecursion = 50 ; Set < Formatter > formatters = new HashSet < Formatter > ( ) ; File outputDirectory = null ; File annotationDirectory = null ; File annotationBaseDirectory = null ; LinkedList < File > includeDirectories = new LinkedList < File > ( ) ; try { return new CompilerOptions ( debugNsInclude , debugNsExclude , maxIteration , maxRecursion , formatters , outputDirectory , includeDirectories , deprecationWarnings , annotationDirectory , annotationBaseDirectory , null , 0 ) ; } catch ( SyntaxException consumed ) { throw CompilerError . create ( MSG_FILE_BUG_REPORT ) ; } }
Create a CompilerOptions object that is appropriate for just doing a
syntax check.

@param deprecationWarnings
determine what deprecation warnings are provided
@return CompilerOptions object configured for a syntax check.