Changeset 17820 in josm
- Timestamp:
- 2021-04-25T07:02:39+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r17793 r17820 96 96 text.format("OS Build number: %s%n", buildNumber); 97 97 } 98 text.format( "Memory Usage: %d MB / %d MB (%d MB allocated, but free)%n",98 text.format(Locale.ROOT, "Memory Usage: %d MB / %d MB (%d MB allocated, but free)%n", 99 99 Runtime.getRuntime().totalMemory() / 1024 / 1024, 100 100 Runtime.getRuntime().maxMemory() / 1024 / 1024, … … 114 114 AffineTransform transform = gd.getDefaultConfiguration().getDefaultTransform(); 115 115 // Java 11: use DisplayMode#toString 116 text.format( " %d\u00D7%d (scaling %.2f\u00D7%.2f)",116 text.format(Locale.ROOT, " %d\u00D7%d (scaling %.2f\u00D7%.2f)", 117 117 dm.getWidth(), dm.getHeight(), transform.getScaleX(), transform.getScaleY()); 118 118 } … … 141 141 } 142 142 } 143 text.format("Locale info: %s%n", Locale.getDefault().toString()); 144 text.format("Numbers with default locale: %s -> %d%n", Integer.toString(1_234_567_890), 1_234_567_890); 143 145 144 146 if (PlatformManager.isPlatformUnixoid()) { -
trunk/src/org/openstreetmap/josm/tools/Logging.java
r17660 r17820 12 12 import java.util.Arrays; 13 13 import java.util.List; 14 import java.util.Locale; 14 15 import java.util.function.Supplier; 15 16 import java.util.logging.ConsoleHandler; … … 496 497 } 497 498 498 String msg = String.format( "%09.3f %s%s", startup.elapsed() / 1000., getPrefix(record), record.getMessage());499 String msg = String.format(Locale.ROOT, "%09.3f %s%s", startup.elapsed() / 1000., getPrefix(record), record.getMessage()); 499 500 500 501 // Only remember first line of message
Note:
See TracChangeset
for help on using the changeset viewer.