Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-06-27T21:43:35+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r8510 r8540 857 857 // See #10479: for PNG files, always enforce transparency to be sure tNRS chunk is used even not in paletted mode 858 858 // This can be removed if someday Oracle fixes https://bugs.openjdk.java.net/browse/JDK-6788458 859 // CHECKSTYLE.OFF: LineLength 859 860 // hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/828c4fedd29f/src/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java#l656 861 // CHECKSTYLE.ON: LineLength 860 862 Image img = read(new ByteArrayInputStream(bytes), false, true); 861 863 return img == null ? null : new ImageResource(img); … … 1541 1543 } 1542 1544 1545 // CHECKSTYLE.OFF: LineLength 1546 1543 1547 /** 1544 1548 * Returns the {@code TransparentColor} defined in image reader metadata. … … 1551 1555 */ 1552 1556 public static Color getTransparentColor(ColorModel model, ImageReader reader) throws IOException { 1557 // CHECKSTYLE.ON: LineLength 1553 1558 try { 1554 1559 IIOMetadata metadata = reader.getImageMetadata(0); -
trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java
r8291 r8540 51 51 Main.platform.openUrl(uri.toString()); 52 52 } else { 53 // This is not the case with some Linux environments (see below), and not sure about Mac OS X, so we need to handle API failure 53 // This is not the case with some Linux environments (see below), 54 // and not sure about Mac OS X, so we need to handle API failure 54 55 try { 55 56 Desktop.getDesktop().browse(uri); -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r8518 r8540 261 261 if ("Linux".equalsIgnoreCase(osName)) { 262 262 try { 263 // Try lsb_release (only available on LSB-compliant Linux systems, see https://www.linuxbase.org/lsb-cert/productdir.php?by_prod ) 263 // Try lsb_release (only available on LSB-compliant Linux systems, 264 // see https://www.linuxbase.org/lsb-cert/productdir.php?by_prod ) 264 265 Process p = Runtime.getRuntime().exec("lsb_release -ds"); 265 266 try (BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream(), StandardCharsets.UTF_8))) { -
trunk/src/org/openstreetmap/josm/tools/template_engine/ParseError.java
r8308 r8540 17 17 18 18 public ParseError(Token unexpectedToken, TokenType expected) { 19 super(tr("Unexpected token on position {0}. Expected {1}, found {2}", unexpectedToken.getPosition(), expected, unexpectedToken.getType())); 19 super(tr("Unexpected token on position {0}. Expected {1}, found {2}", 20 unexpectedToken.getPosition(), expected, unexpectedToken.getType())); 20 21 this.unexpectedToken = unexpectedToken; 21 22 }
Note:
See TracChangeset
for help on using the changeset viewer.