Changeset 11870 in josm


Ignore:
Timestamp:
2017-04-09T17:12:16+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs - RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r11819 r11870  
    321321    public StyledMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) {
    322322        super(g, nc, isInactiveMode);
    323 
    324         if (nc != null) {
    325             Component focusOwner = FocusManager.getCurrentManager().getFocusOwner();
    326             useWiderHighlight = !(focusOwner instanceof AbstractButton || focusOwner == nc);
    327         }
     323        Component focusOwner = FocusManager.getCurrentManager().getFocusOwner();
     324        useWiderHighlight = !(focusOwner instanceof AbstractButton || focusOwner == nc);
    328325    }
    329326
Note: See TracChangeset for help on using the changeset viewer.