- Timestamp:
- 2018-06-30T19:35:21+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r13901 r13990 1743 1743 public static String getJavaLatestVersion() { 1744 1744 try { 1745 returnHttpClient.create(1745 String[] versions = HttpClient.create( 1746 1746 new URL(Config.getPref().get( 1747 1747 "java.baseline.version.url", 1748 1748 "http://javadl-esd-secure.oracle.com/update/baseline.version"))) 1749 .connect().fetchContent().split("\n")[0]; 1749 .connect().fetchContent().split("\n"); 1750 if (getJavaVersion() <= 8) { 1751 for (String version : versions) { 1752 if (version.startsWith("1.8")) { 1753 return version; 1754 } 1755 } 1756 } 1757 return versions[0]; 1750 1758 } catch (IOException e) { 1751 1759 Logging.error(e);
Note:
See TracChangeset
for help on using the changeset viewer.