Changeset 14913 in josm


Ignore:
Timestamp:
2019-03-21T10:33:59+01:00 (6 years ago)
Author:
GerdP
Message:

fix findbugs: remove redundant null checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r14882 r14913  
    275275    /**
    276276     * Returns the ignore state for this error.
    277      * @return the ignore state for this error
     277     * @return the ignore state for this error or null if any primitive is new
    278278     */
    279279    public String getIgnoreState() {
     
    311311
    312312    private boolean calcIgnored() {
    313         String state = getIgnoreGroup();
    314         if (state != null && OsmValidator.hasIgnoredError(state))
     313        if (OsmValidator.hasIgnoredError(getIgnoreGroup()))
    315314            return true;
    316         state = getIgnoreSubGroup();
    317         if (state != null && OsmValidator.hasIgnoredError(state))
     315        if (OsmValidator.hasIgnoredError(getIgnoreSubGroup()))
    318316            return true;
    319         state = getIgnoreState();
     317        String state = getIgnoreState();
    320318        return state != null && OsmValidator.hasIgnoredError(state);
    321319    }
Note: See TracChangeset for help on using the changeset viewer.