8205623: Replace use of Class::getPackage with Class::getPackageName

Reviewed-by: jjg, erikj
This commit is contained in:
Mandy Chung 2018-06-25 22:28:04 -07:00
parent 140e7415ff
commit 4e844fe623
3 changed files with 9 additions and 3 deletions

View file

@ -69,7 +69,7 @@ public abstract class BreakIteratorResourceBundle extends ResourceBundle {
if (!info.containsKey(key)) {
return null;
}
String path = getClass().getPackage().getName().replace('.', '/')
String path = getClass().getPackageName().replace('.', '/')
+ '/' + info.getString(key);
byte[] data;
try (InputStream is = getResourceAsStream(path)) {