equal
deleted
inserted
replaced
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.javac.code; |
26 package com.sun.tools.javac.code; |
27 |
27 |
28 import java.util.EnumSet; |
28 import java.util.EnumSet; |
29 import java.util.ResourceBundle; |
29 import java.util.Locale; |
30 |
30 |
31 import com.sun.tools.javac.api.Formattable; |
31 import com.sun.tools.javac.api.Formattable; |
|
32 import com.sun.tools.javac.api.Messages; |
32 |
33 |
33 import static com.sun.tools.javac.code.TypeTags.*; |
34 import static com.sun.tools.javac.code.TypeTags.*; |
34 import static com.sun.tools.javac.code.Flags.*; |
35 import static com.sun.tools.javac.code.Flags.*; |
35 |
36 |
36 /** Internal symbol kinds, which distinguish between elements of |
37 /** Internal symbol kinds, which distinguish between elements of |
115 |
116 |
116 public String getKind() { |
117 public String getKind() { |
117 return "Kindname"; |
118 return "Kindname"; |
118 } |
119 } |
119 |
120 |
120 public String toString(ResourceBundle bundle) { |
121 public String toString(Locale locale, Messages messages) { |
121 String s = toString(); |
122 String s = toString(); |
122 return bundle.getString("compiler.misc." + s); |
123 return messages.getLocalizedString(locale, "compiler.misc." + s); |
123 } |
124 } |
124 } |
125 } |
125 |
126 |
126 /** A KindName representing a given symbol kind |
127 /** A KindName representing a given symbol kind |
127 */ |
128 */ |