Changeset 11096 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-10-08T02:01:09+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r10734 r11096 217 217 try { 218 218 // CHECKSTYLE.OFF: SingleSpaceSeparator 219 boolean dpkg = Files.exists(Paths.get("/usr/bin/dpkg-query"));220 boolean eque = Files.exists(Paths.get("/usr/bin/equery"));221 boolean rpm = Files.exists(Paths.get("/bin/rpm"));219 boolean dpkg = Paths.get("/usr/bin/dpkg-query").toFile().exists(); 220 boolean eque = Paths.get("/usr/bin/equery").toFile().exists(); 221 boolean rpm = Paths.get("/bin/rpm").toFile().exists(); 222 222 // CHECKSTYLE.ON: SingleSpaceSeparator 223 223 if (dpkg || rpm || eque) { … … 390 390 if (path != null) { 391 391 Path p = Paths.get(path); 392 if ( Files.exists(p)) {392 if (p.toFile().exists()) { 393 393 try (BufferedReader reader = Files.newBufferedReader(p, StandardCharsets.UTF_8)) { 394 394 String id = null;
Note:
See TracChangeset
for help on using the changeset viewer.