1103 public Env<AttrContext> attribute(Env<AttrContext> env) { |
1103 public Env<AttrContext> attribute(Env<AttrContext> env) { |
1104 if (compileStates.isDone(env, CompileState.ATTR)) |
1104 if (compileStates.isDone(env, CompileState.ATTR)) |
1105 return env; |
1105 return env; |
1106 |
1106 |
1107 if (verboseCompilePolicy) |
1107 if (verboseCompilePolicy) |
1108 Log.printLines(log.noticeWriter, "[attribute " + env.enclClass.sym + "]"); |
1108 printNote("[attribute " + env.enclClass.sym + "]"); |
1109 if (verbose) |
1109 if (verbose) |
1110 printVerbose("checking.attribution", env.enclClass.sym); |
1110 printVerbose("checking.attribution", env.enclClass.sym); |
1111 |
1111 |
1112 if (taskListener != null) { |
1112 if (taskListener != null) { |
1113 TaskEvent e = new TaskEvent(TaskEvent.Kind.ANALYZE, env.toplevel, env.enclClass.sym); |
1113 TaskEvent e = new TaskEvent(TaskEvent.Kind.ANALYZE, env.toplevel, env.enclClass.sym); |
1525 /** Output for "-verbose" option. |
1525 /** Output for "-verbose" option. |
1526 * @param key The key to look up the correct internationalized string. |
1526 * @param key The key to look up the correct internationalized string. |
1527 * @param arg An argument for substitution into the output string. |
1527 * @param arg An argument for substitution into the output string. |
1528 */ |
1528 */ |
1529 protected void printVerbose(String key, Object arg) { |
1529 protected void printVerbose(String key, Object arg) { |
1530 Log.printLines(log.noticeWriter, Log.getLocalizedString("verbose." + key, arg)); |
1530 log.printNoteLines("verbose." + key, arg); |
1531 } |
1531 } |
1532 |
1532 |
1533 /** Print numbers of errors and warnings. |
1533 /** Print numbers of errors and warnings. |
1534 */ |
1534 */ |
1535 protected void printCount(String kind, int count) { |
1535 protected void printCount(String kind, int count) { |
1536 if (count != 0) { |
1536 if (count != 0) { |
1537 String text; |
1537 String key; |
1538 if (count == 1) |
1538 if (count == 1) |
1539 text = Log.getLocalizedString("count." + kind, String.valueOf(count)); |
1539 key = "count." + kind; |
1540 else |
1540 else |
1541 text = Log.getLocalizedString("count." + kind + ".plural", String.valueOf(count)); |
1541 key = "count." + kind + ".plural"; |
1542 Log.printLines(log.errWriter, text); |
1542 log.printErrLines(key, String.valueOf(count)); |
1543 log.errWriter.flush(); |
1543 log.errWriter.flush(); |
1544 } |
1544 } |
1545 } |
1545 } |
1546 |
1546 |
1547 private static long now() { |
1547 private static long now() { |