src/share/classes/com/sun/tools/javadoc/Messager.java

changeset 912
5e6c661891da
parent 893
8f0dcb9499db
child 1357
c75be5bc5283
equal deleted inserted replaced
911:4ee7de0684f5 912:5e6c661891da
141 /** 141 /**
142 * Get string from ResourceBundle, initialize ResourceBundle 142 * Get string from ResourceBundle, initialize ResourceBundle
143 * if needed. 143 * if needed.
144 */ 144 */
145 private String getString(String key) { 145 private String getString(String key) {
146 ResourceBundle messageRB = this.messageRB;
147 if (messageRB == null) { 146 if (messageRB == null) {
148 try { 147 try {
149 this.messageRB = messageRB = 148 messageRB = ResourceBundle.getBundle(
150 ResourceBundle.getBundle(
151 "com.sun.tools.javadoc.resources.javadoc"); 149 "com.sun.tools.javadoc.resources.javadoc");
152 } catch (MissingResourceException e) { 150 } catch (MissingResourceException e) {
153 throw new Error("Fatal: Resource for javadoc is missing"); 151 throw new Error("Fatal: Resource for javadoc is missing");
154 } 152 }
155 } 153 }
454 452
455 /** 453 /**
456 * Print exit message. 454 * Print exit message.
457 */ 455 */
458 public void exitNotice() { 456 public void exitNotice() {
459 int nerrors = nerrors();
460 int nwarnings = nwarnings();
461 if (nerrors > 0) { 457 if (nerrors > 0) {
462 notice((nerrors > 1) ? "main.errors" : "main.error", 458 notice((nerrors > 1) ? "main.errors" : "main.error",
463 "" + nerrors); 459 "" + nerrors);
464 } 460 }
465 if (nwarnings > 0) { 461 if (nwarnings > 0) {

mercurial