Ignore:
Timestamp:
2017-01-12T01:24:40+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:SEO_SUBOPTIMAL_EXPRESSION_ORDER - Performance - Method orders expressions in a conditional in a sub optimal way

File:
1 edited

Legend:

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

    r11385 r11452  
    586586
    587587            // Select Draw Tool if no selection has been made
    588             if (getLayerManager().getEditDataSet().selectionEmpty() && !cancelDrawMode) {
     588            if (!cancelDrawMode && getLayerManager().getEditDataSet().selectionEmpty()) {
    589589                Main.map.selectDrawTool(true);
    590590                updateStatusLine();
     
    639639    @Override
    640640    public void doKeyPressed(KeyEvent e) {
    641         if (!Main.isDisplayingMapView() ||
    642                 !repeatedKeySwitchLassoOption || !getShortcut().isEvent(e)) return;
     641        if (!repeatedKeySwitchLassoOption || !Main.isDisplayingMapView() || !getShortcut().isEvent(e))
     642            return;
    643643        if (Main.isDebugEnabled()) {
    644644            Main.debug(getClass().getName()+" consuming event "+e);
Note: See TracChangeset for help on using the changeset viewer.