Ignore:
Timestamp:
2015-06-27T21:43:35+02:00 (6 years ago)
Author:
Don-vip
Message:

fix remaining checkstyle issues

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8510 r8540  
    857857                    // See #10479: for PNG files, always enforce transparency to be sure tNRS chunk is used even not in paletted mode
    858858                    // This can be removed if someday Oracle fixes https://bugs.openjdk.java.net/browse/JDK-6788458
     859                    // CHECKSTYLE.OFF: LineLength
    859860                    // hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/828c4fedd29f/src/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java#l656
     861                    // CHECKSTYLE.ON: LineLength
    860862                    Image img = read(new ByteArrayInputStream(bytes), false, true);
    861863                    return img == null ? null : new ImageResource(img);
     
    15411543    }
    15421544
     1545    // CHECKSTYLE.OFF: LineLength
     1546
    15431547    /**
    15441548     * Returns the {@code TransparentColor} defined in image reader metadata.
     
    15511555     */
    15521556    public static Color getTransparentColor(ColorModel model, ImageReader reader) throws IOException {
     1557        // CHECKSTYLE.ON: LineLength
    15531558        try {
    15541559            IIOMetadata metadata = reader.getImageMetadata(0);
  • trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java

    r8291 r8540  
    5151                    Main.platform.openUrl(uri.toString());
    5252                } 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
    5455                    try {
    5556                        Desktop.getDesktop().browse(uri);
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r8518 r8540  
    261261        if ("Linux".equalsIgnoreCase(osName)) {
    262262            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 )
    264265                Process p = Runtime.getRuntime().exec("lsb_release -ds");
    265266                try (BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream(), StandardCharsets.UTF_8))) {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ParseError.java

    r8308 r8540  
    1717
    1818    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()));
    2021        this.unexpectedToken = unexpectedToken;
    2122    }
Note: See TracChangeset for help on using the changeset viewer.