Ignore:
Timestamp:
2014-12-13T01:07:04+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java

    r6524 r7801  
    2929        // Hide default constructor for utils classes
    3030    }
    31    
     31
    3232    /**
    3333     * Tags that imply a semantic meaning from the way direction and cannot be changed.
     
    4545            new Tag("waterway", "canal")
    4646    }));
    47    
     47
    4848    /**
    4949     * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed.
     
    5454        return directionalTags.intersect(TagCollection.from(way));
    5555    }
    56    
     56
    5757    /**
    5858     * Tests whether way can be reversed without semantic change.
     
    6464        return getDirectionalTags(way).isEmpty();
    6565    }
    66    
     66
    6767    protected static String getHTML(TagCollection tags) {
    6868        if (tags.size() == 1) {
     
    7474        }
    7575    }
    76    
     76
    7777    protected static boolean confirmReverseWay(Way way, TagCollection tags) {
    7878        String msg = trn(
     
    100100        );
    101101        switch(ret) {
    102             case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION : return true;
    103             case JOptionPane.YES_OPTION: return true;
    104             default: return false;
     102            case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION:
     103            case JOptionPane.YES_OPTION:
     104                return true;
     105            default:
     106                return false;
    105107        }
    106108    }
    107    
     109
    108110    /**
    109111     * Checks the given way can be safely reversed and asks user to confirm the operation if it not the case.
Note: See TracChangeset for help on using the changeset viewer.