Ignore:
Timestamp:
2017-02-25T20:47:05+01:00 (7 years ago)
Author:
Don-vip
Message:

checkstyle - enable CatchParameterName rule

File:
1 edited

Legend:

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

    r11452 r11620  
    238238                    data.add(currentResult);
    239239                }
    240             } catch (NumberFormatException x) {
    241                 Main.error(x); // SAXException does not chain correctly
    242                 throw new SAXException(x.getMessage(), x);
    243             } catch (NullPointerException x) {
    244                 Main.error(x); // SAXException does not chain correctly
    245                 throw new SAXException(tr("Null pointer exception, possibly some missing tags."), x);
     240            } catch (NumberFormatException ex) {
     241                Main.error(ex); // SAXException does not chain correctly
     242                throw new SAXException(ex.getMessage(), ex);
     243            } catch (NullPointerException ex) {
     244                Main.error(ex); // SAXException does not chain correctly
     245                throw new SAXException(tr("Null pointer exception, possibly some missing tags."), ex);
    246246            }
    247247        }
Note: See TracChangeset for help on using the changeset viewer.