src/share/classes/com/sun/tools/javac/main/JavaCompiler.java

changeset 1442
fcf89720ae71
parent 1416
c0f0c41cafa0
child 1455
75ab654b5cd5
equal deleted inserted replaced
1441:c78acf6c2f3e 1442:fcf89720ae71
187 else 187 else
188 return DEFAULT_COMPILE_POLICY; 188 return DEFAULT_COMPILE_POLICY;
189 } 189 }
190 } 190 }
191 191
192 private static CompilePolicy DEFAULT_COMPILE_POLICY = CompilePolicy.BY_TODO; 192 private static final CompilePolicy DEFAULT_COMPILE_POLICY = CompilePolicy.BY_TODO;
193 193
194 protected static enum ImplicitSourcePolicy { 194 protected static enum ImplicitSourcePolicy {
195 /** Don't generate or process implicitly read source files. */ 195 /** Don't generate or process implicitly read source files. */
196 NONE, 196 NONE,
197 /** Generate classes for implicitly read source files. */ 197 /** Generate classes for implicitly read source files. */
541 return value > other.value; 541 return value > other.value;
542 } 542 }
543 public static CompileState max(CompileState a, CompileState b) { 543 public static CompileState max(CompileState a, CompileState b) {
544 return a.value > b.value ? a : b; 544 return a.value > b.value ? a : b;
545 } 545 }
546 private int value; 546 private final int value;
547 }; 547 };
548 /** Partial map to record which compiler phases have been executed 548 /** Partial map to record which compiler phases have been executed
549 * for each compilation unit. Used for ATTR and FLOW phases. 549 * for each compilation unit. Used for ATTR and FLOW phases.
550 */ 550 */
551 protected class CompileStates extends HashMap<Env<AttrContext>,CompileState> { 551 protected class CompileStates extends HashMap<Env<AttrContext>,CompileState> {

mercurial