Changeset 10208 in josm for trunk/src/org/openstreetmap/josm/data/Preferences.java
- Timestamp:
- 2016-05-14T02:38:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r10181 r10208 1209 1209 T structPrototype; 1210 1210 try { 1211 structPrototype = klass. newInstance();1212 } catch ( InstantiationException | IllegalAccessException ex) {1211 structPrototype = klass.getConstructor().newInstance(); 1212 } catch (ReflectiveOperationException ex) { 1213 1213 throw new RuntimeException(ex); 1214 1214 } … … 1258 1258 T struct = null; 1259 1259 try { 1260 struct = klass. newInstance();1261 } catch ( InstantiationException | IllegalAccessException ex) {1260 struct = klass.getConstructor().newInstance(); 1261 } catch (ReflectiveOperationException ex) { 1262 1262 throw new RuntimeException(ex); 1263 1263 } 1264 1264 for (Entry<String, String> key_value : hash.entrySet()) { 1265 Object value = null;1265 Object value; 1266 1266 Field f; 1267 1267 try {
Note:
See TracChangeset
for help on using the changeset viewer.