Ignore:
Timestamp:
2016-07-29T00:02:17+02:00 (3 years ago)
Author:
Don-vip
Message:

see #12472 - fix "OperatorPrecedence" warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r10638 r10670  
    269269        return ImageIO.getImageReadersByMIMEType(format).hasNext()
    270270                // handles image/tiff image/tiff8 image/geotiff image/geotiff8
    271                 || (format.startsWith("image/tiff") || format.startsWith("image/geotiff"))
    272                         && ImageIO.getImageReadersBySuffix("tiff").hasNext()
    273                 || format.startsWith("image/png") && ImageIO.getImageReadersBySuffix("png").hasNext()
    274                 || format.startsWith("image/svg") && ImageIO.getImageReadersBySuffix("svg").hasNext()
    275                 || format.startsWith("image/bmp") && ImageIO.getImageReadersBySuffix("bmp").hasNext();
     271                || ((format.startsWith("image/tiff") || format.startsWith("image/geotiff"))
     272                        && ImageIO.getImageReadersBySuffix("tiff").hasNext())
     273                || (format.startsWith("image/png") && ImageIO.getImageReadersBySuffix("png").hasNext())
     274                || (format.startsWith("image/svg") && ImageIO.getImageReadersBySuffix("svg").hasNext())
     275                || (format.startsWith("image/bmp") && ImageIO.getImageReadersBySuffix("bmp").hasNext());
    276276    }
    277277
Note: See TracChangeset for help on using the changeset viewer.