Ignore:
Timestamp:
2013-08-03T00:17:44+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - Small performance enhancements / coding style (patch by shinigami):

  • removed useles null checks before instanceof
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r6084 r6105  
    581581            AttributeSet set = e.getSourceElement().getAttributes();
    582582            Object value = set.getAttribute(Tag.A);
    583             if (value == null || ! (value instanceof SimpleAttributeSet)) return null;
     583            if (!(value instanceof SimpleAttributeSet)) return null;
    584584            SimpleAttributeSet atts = (SimpleAttributeSet)value;
    585585            value = atts.getAttribute(javax.swing.text.html.HTML.Attribute.HREF);
Note: See TracChangeset for help on using the changeset viewer.