src/share/classes/java/util/ListResourceBundle.java

Print this page
rev 3186 : 6880112: Project Coin: Port JDK core library code to use diamond operator

*** 185,195 **** private synchronized void loadLookup() { if (lookup != null) return; Object[][] contents = getContents(); ! HashMap<String,Object> temp = new HashMap<String,Object>(contents.length); for (int i = 0; i < contents.length; ++i) { // key must be non-null String, value must be non-null String key = (String) contents[i][0]; Object value = contents[i][1]; if (key == null || value == null) { --- 185,195 ---- private synchronized void loadLookup() { if (lookup != null) return; Object[][] contents = getContents(); ! HashMap<String,Object> temp = new HashMap<>(contents.length); for (int i = 0; i < contents.length; ++i) { // key must be non-null String, value must be non-null String key = (String) contents[i][0]; Object value = contents[i][1]; if (key == null || value == null) {