- Timestamp:
- 2017-01-08T16:53:49+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r11436 r11443 30 30 import java.util.Map; 31 31 import java.util.Map.Entry; 32 import java.util.MissingResourceException;33 32 import java.util.Objects; 34 33 import java.util.Optional; … … 1426 1425 // Workaround to fix a Java bug. This ugly hack comes from Sun bug database: https://bugs.openjdk.java.net/browse/JDK-6292739 1427 1426 // Force AWT toolkit to update its internal preferences (fix #6345). 1427 // Does not work anymore with Java 9, to remove with Java 9 migration 1428 1428 if (!GraphicsEnvironment.isHeadless()) { 1429 1429 try { … … 1431 1431 Utils.setObjectsAccessible(field); 1432 1432 field.set(null, ResourceBundle.getBundle("sun.awt.resources.awt")); 1433 } catch (ReflectiveOperationException | MissingResourceException e) {1433 } catch (ReflectiveOperationException | RuntimeException e) { 1434 1434 Main.warn(e); 1435 1435 }
Note:
See TracChangeset
for help on using the changeset viewer.