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/gui/dialogs/layer/LayerListTransferHandler.java

    r10762 r11452  
    9696            boolean isSameLayerManager = tableModel.getLayerManager() == layers.getManager();
    9797
    98             if (support.getDropAction() == MOVE && isSameLayerManager) {
     98            if (isSameLayerManager && support.getDropAction() == MOVE) {
    9999                for (Layer layer : layers.getLayers()) {
    100100                    boolean wasBeforeInsert = layers.getManager().getLayers().indexOf(layer) <= dropLocation;
Note: See TracChangeset for help on using the changeset viewer.