Ignore:
Timestamp:
2016-12-12T02:28:14+01:00 (9 years ago)
Author:
Don-vip
Message:

findbugs - RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
2 edited

Legend:

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

    r11144 r11381  
    401401                updateStateByCurrentSelection();
    402402            }
    403         } else if (state == State.IMPROVING && mousePos != null) {
     403        } else if (state == State.IMPROVING) {
    404404            // Checking if the new coordinate is outside of the world
    405405            if (mv.getLatLon(mousePos.x, mousePos.y).isOutSideWorld()) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java

    r9067 r11381  
    6666
    6767    @Override public void mouseReleased(MouseEvent ev) {
    68         Point p = ev.getPoint();
    6968        mouseStart = null;
    70         if (ev.getButton() != MouseEvent.BUTTON1 || p == null || !dragging)
     69        if (ev.getButton() != MouseEvent.BUTTON1 || !dragging)
    7170            return;
    7271
Note: See TracChangeset for help on using the changeset viewer.