jdk/src/share/classes/java/util/ListResourceBundle.java
changeset 7803 56bc97d69d93
parent 5506 202f599c92aa
child 7809 bced84a279ec
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
   185     private synchronized void loadLookup() {
   185     private synchronized void loadLookup() {
   186         if (lookup != null)
   186         if (lookup != null)
   187             return;
   187             return;
   188 
   188 
   189         Object[][] contents = getContents();
   189         Object[][] contents = getContents();
   190         HashMap<String,Object> temp = new HashMap<String,Object>(contents.length);
   190         HashMap<String,Object> temp = new HashMap<>(contents.length);
   191         for (int i = 0; i < contents.length; ++i) {
   191         for (int i = 0; i < contents.length; ++i) {
   192             // key must be non-null String, value must be non-null
   192             // key must be non-null String, value must be non-null
   193             String key = (String) contents[i][0];
   193             String key = (String) contents[i][0];
   194             Object value = contents[i][1];
   194             Object value = contents[i][1];
   195             if (key == null || value == null) {
   195             if (key == null || value == null) {