Changeset 14094 in josm for trunk/src/org


Ignore:
Timestamp:
2018-08-05T21:45:09+02:00 (6 years ago)
Author:
Don-vip
Message:

fix spotbugs warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r14088 r14094  
    138138
    139139    private void handleIllegalDataException(IllegalDataException e) throws XMLStreamException {
    140         if (e.getCause() instanceof XMLStreamException) {
    141             throw (XMLStreamException) e.getCause();
     140        Throwable cause = e.getCause();
     141        if (cause instanceof XMLStreamException) {
     142            throw (XMLStreamException) cause;
    142143        } else {
    143144            throwException(e);
Note: See TracChangeset for help on using the changeset viewer.