- Timestamp:
- 2013-06-06T23:42:48+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r5885 r5994 21 21 */ 22 22 public class PlatformHookUnixoid implements PlatformHook { 23 24 private String osDescription; 25 23 26 @Override 24 27 public void preStartupHook(){ … … 87 90 } 88 91 89 @Override 90 public String getOSDescription() { 92 protected String buildOSDescription() { 91 93 String osName = System.getProperty("os.name"); 92 94 if ("Linux".equalsIgnoreCase(osName)) { … … 124 126 } 125 127 return osName; 128 } 129 130 @Override 131 public String getOSDescription() { 132 if (osDescription == null) { 133 osDescription = buildOSDescription(); 134 } 135 return osDescription; 126 136 } 127 137
Note:
See TracChangeset
for help on using the changeset viewer.