Ignore:
Timestamp:
2017-11-01T19:35:45+01:00 (6 years ago)
Author:
Don-vip
Message:

sonar - fix a few issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java

    r13019 r13068  
    6161
    6262    private static int getTestedVersion() {
    63         try {
    64             CachedFile testedVersion = new CachedFile(Main.getJOSMWebsite() + "/tested");
    65             testedVersion.setMaxAge(60 * 15); // 15 Minutes
     63        try (CachedFile testedVersion = new CachedFile(Main.getJOSMWebsite() + "/tested")) {
     64            testedVersion.setMaxAge(60L * 15); // 15 Minutes
    6665            String testedString = new String(testedVersion.getByteContent(), StandardCharsets.ISO_8859_1);
    6766            return Integer.parseInt(testedString.trim());
Note: See TracChangeset for help on using the changeset viewer.