compilerEnv.setGenerateObserverCount(true);
compilerEnv.setGenerateObserverCount(true);
private CompilerEnvirons createEnvironment() { // Since this is only used in our own project, we hard-code these. A "real" plugin would // have them all configurable CompilerEnvirons env = new CompilerEnvirons(); env.setLanguageVersion(Context.VERSION_1_8); env.setGenerateDebugInfo(debugInfo); env.setOptimizationLevel(optimizationLevel); env.setGeneratingSource(generateSource); env.setRecordingComments(false); env.setRecoverFromErrors(false); env.setGenerateObserverCount(generateObserverCount); return env; }