Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java

    r30701 r32556  
    1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others
    2 // Some of the procedures below are imported from image4j.sourceforge.net, license LGPL.
     1// License: GPL. For details, see LICENSE file.
    32package cadastre_fr;
    43
     
    2524    protected BufferedImage convert1(BufferedImage src) {
    2625        IndexColorModel icm = new IndexColorModel(
    27             1, 2, new byte[] { (byte) 0, (byte) 0xFF },
    28             new byte[] { (byte) 0, (byte) 0xFF },
    29             new byte[] { (byte) 0, (byte) 0xFF }
     26            1, 2,
     27            new byte[] {(byte) 0, (byte) 0xFF},
     28            new byte[] {(byte) 0, (byte) 0xFF},
     29            new byte[] {(byte) 0, (byte) 0xFF}
    3030        );
    3131
     
    113113
    114114    public boolean isBuildingColor(int rgb, boolean ignoreParcelColor) {
    115         for (int i = 0; i < cBuilingFootColors.length; i++)
     115        for (int i = 0; i < cBuilingFootColors.length; i++) {
    116116            if (rgb == cBuilingFootColors[i])
    117117                    return true;
     118        }
    118119        if (ignoreParcelColor && (rgb == parcelColor))
    119120            return true;
     
    122123
    123124    public boolean isRoofColor(int rgb, boolean ignoreParcelColor) {
    124         for (int i = 0; i < cRoofColors.length; i++)
     125        for (int i = 0; i < cRoofColors.length; i++) {
    125126            if (rgb == cRoofColors[i])
    126127                    return true;
     128        }
    127129        if (ignoreParcelColor && (rgb == parcelColor))
    128130            return true;
     
    153155    /**
    154156     * Checks if the rgb value is the black background color
    155      * @param
    156      * @return
    157157     */
    158158    public boolean isBackgroundColor(BufferedImage img, int x, int y) {
Note: See TracChangeset for help on using the changeset viewer.