Ignore:
Timestamp:
2015-05-11T10:52:33+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Useless parentheses around expressions should be removed to prevent any misunderstanding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

    r8308 r8345  
    245245        boolean oldAlt = alt, oldShift = shift, oldCtrl = ctrl;
    246246        updateKeyModifiers(modifiers);
    247         return (oldAlt != alt || oldShift != shift || oldCtrl != ctrl);
     247        return oldAlt != alt || oldShift != shift || oldCtrl != ctrl;
    248248    }
    249249
     
    288288            ((Boolean) this.getValue("active"));
    289289        // @formatter:on
    290         assert (areWeSane); // mad == bad
     290        assert areWeSane; // mad == bad
    291291        return areWeSane;
    292292    }
     
    498498    //// We keep the source ways and the selection in sync so the user can see the source way's tags
    499499    private void addSourceWay(Way w) {
    500         assert (sourceWays != null);
     500        assert sourceWays != null;
    501501        getCurrentDataSet().addSelected(w);
    502502        w.setHighlighted(true);
     
    505505
    506506    private void removeSourceWay(Way w) {
    507         assert (sourceWays != null);
     507        assert sourceWays != null;
    508508        getCurrentDataSet().clearSelection(w);
    509509        w.setHighlighted(false);
     
    512512
    513513    private void clearSourceWays() {
    514         assert (sourceWays != null);
     514        assert sourceWays != null;
    515515        getCurrentDataSet().clearSelection(sourceWays);
    516516        for (Way w : sourceWays) {
Note: See TracChangeset for help on using the changeset viewer.