< prev index next >
src/com/sun/javatest/util/I18NResourceBundle.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
*** 47,57 ****
* The bundle is named i18n.properties in the same
* package as the given class.
* @param c the class for which to obtain the resource bundle
* @return the appropriate resource bundle for the class
*/
! public static I18NResourceBundle getBundleForClass(Class c) {
String cn = c.getName();
int dot = cn.lastIndexOf('.');
String rn = (dot == -1 ? "i18n" : cn.substring(0, dot) + ".i18n");
boolean logging = (logClassPrefix == null ? false : cn.startsWith(logClassPrefix));
return new I18NResourceBundle(rn, logging, c.getClassLoader());
--- 47,57 ----
* The bundle is named i18n.properties in the same
* package as the given class.
* @param c the class for which to obtain the resource bundle
* @return the appropriate resource bundle for the class
*/
! public static I18NResourceBundle getBundleForClass(Class<?> c) {
String cn = c.getName();
int dot = cn.lastIndexOf('.');
String rn = (dot == -1 ? "i18n" : cn.substring(0, dot) + ".i18n");
boolean logging = (logClassPrefix == null ? false : cn.startsWith(logClassPrefix));
return new I18NResourceBundle(rn, logging, c.getClassLoader());
< prev index next >