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

findbugs - RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r11100 r11381  
    439439        for (GraphicsDevice gd: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()) {
    440440            DisplayMode dm = gd.getDisplayMode();
    441             if (dm != null) {
    442                 height = Math.max(height, dm.getHeight());
    443                 width = Math.max(width, dm.getWidth());
    444             }
     441            height = Math.max(height, dm.getHeight());
     442            width = Math.max(width, dm.getWidth());
    445443        }
    446444        if (height == 0 || width == 0) {
Note: See TracChangeset for help on using the changeset viewer.