Changeset 12841 in josm for trunk/src/org/openstreetmap/josm/io/CachedFile.java
- Timestamp:
- 2017-09-13T16:30:27+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r12620 r12841 381 381 if (!"file".equals(url.getProtocol())) { 382 382 String prefKey = getPrefKey(url, destDir); 383 List<String> localPath = new ArrayList<>(Main.pref.get Collection(prefKey));383 List<String> localPath = new ArrayList<>(Main.pref.getList(prefKey)); 384 384 if (localPath.size() == 2) { 385 385 File lfile = new File(localPath.get(1)); … … 388 388 } 389 389 } 390 Main.pref.put Collection(prefKey, null);390 Main.pref.putList(prefKey, null); 391 391 } 392 392 } catch (MalformedURLException e) { … … 419 419 Long ifModifiedSince = null; 420 420 File localFile = null; 421 List<String> localPathEntry = new ArrayList<>(Main.pref.get Collection(prefKey));421 List<String> localPathEntry = new ArrayList<>(Main.pref.getList(prefKey)); 422 422 boolean offline = false; 423 423 try { … … 476 476 if (localFile == null) 477 477 throw new AssertionError(); 478 Main.pref.put Collection(prefKey,478 Main.pref.putList(prefKey, 479 479 Arrays.asList(Long.toString(System.currentTimeMillis()), localPathEntry.get(1))); 480 480 return localFile; … … 488 488 localFile = new File(destDir, localPath); 489 489 if (Main.platform.rename(destDirFile, localFile)) { 490 Main.pref.put Collection(prefKey,490 Main.pref.putList(prefKey, 491 491 Arrays.asList(Long.toString(System.currentTimeMillis()), localFile.toString())); 492 492 } else {
Note:
See TracChangeset
for help on using the changeset viewer.