< prev index next >

langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java

Print this page

        

*** 746,755 **** --- 746,763 ---- */ public String localize(String key, Object... args) { return localize(PrefixKind.COMPILER_MISC, key, args); } + public String localize(JCDiagnostic.DiagnosticInfo diagInfo) { + if (useRawMessages) { + return diagInfo.key(); + } else { + return messages.getLocalizedString(diagInfo.key(), diagInfo.args); + } + } + /** Find a localized string in the resource bundle. * @param key The key for the localized string. * @param args Fields to substitute into the string. */ public String localize(PrefixKind pk, String key, Object... args) {
< prev index next >