Changeset 13019 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-10-18T12:21:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java
r12918 r13019 6 6 import java.awt.GridBagLayout; 7 7 import java.io.IOException; 8 import java.nio.charset.StandardCharsets; 8 9 9 10 import javax.swing.JButton; … … 15 16 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 16 17 import org.openstreetmap.josm.gui.widgets.UrlLabel; 18 import org.openstreetmap.josm.io.CachedFile; 17 19 import org.openstreetmap.josm.tools.GBC; 18 20 import org.openstreetmap.josm.tools.ImageProvider; 19 21 import org.openstreetmap.josm.tools.Logging; 20 import org.openstreetmap.josm.tools.WikiReader;21 22 22 23 /** … … 61 62 private static int getTestedVersion() { 62 63 try { 63 String testedString = new WikiReader().read(Main.getJOSMWebsite() + "/tested"); 64 CachedFile testedVersion = new CachedFile(Main.getJOSMWebsite() + "/tested"); 65 testedVersion.setMaxAge(60 * 15); // 15 Minutes 66 String testedString = new String(testedVersion.getByteContent(), StandardCharsets.ISO_8859_1); 64 67 return Integer.parseInt(testedString.trim()); 65 68 } catch (NumberFormatException | IOException e) {
Note:
See TracChangeset
for help on using the changeset viewer.