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

checkstyle - enable CatchParameterName rule

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r11399 r11620  
    12271227                parser.parse(new InputSource(is));
    12281228            }
    1229         } catch (SAXReturnException r) {
    1230             Main.trace(r);
    1231             return r.getResult();
     1229        } catch (SAXReturnException e) {
     1230            Main.trace(e);
     1231            return e.getResult();
    12321232        } catch (IOException | SAXException | ParserConfigurationException e) {
    12331233            Main.warn("Parsing " + base + fn + " failed:\n" + e);
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r11329 r11620  
    4141                url = Utils.decodeUrl(url);
    4242            }
    43         } catch (IllegalArgumentException x) {
    44             Main.error(x);
     43        } catch (IllegalArgumentException ex) {
     44            Main.error(ex);
    4545        }
    4646        Bounds b = parseShortLink(url);
     
    8282                        z == null ? 18 : Integer.parseInt(z));
    8383            }
    84         } catch (NumberFormatException | NullPointerException | ArrayIndexOutOfBoundsException x) {
    85             Main.error(x);
     84        } catch (NumberFormatException | NullPointerException | ArrayIndexOutOfBoundsException ex) {
     85            Main.error(ex);
    8686        }
    8787        return b;
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r11288 r11620  
    5050        try {
    5151            fact = DatatypeFactory.newInstance();
    52         } catch (DatatypeConfigurationException ce) {
    53             Main.error(ce);
     52        } catch (DatatypeConfigurationException e) {
     53            Main.error(e);
    5454        }
    5555        XML_DATE = fact;
    5656    }
    5757
     58    /**
     59     * Constructs a new {@code DateUtils}.
     60     */
    5861    protected DateUtils() {
    5962        // Hide default constructor for utils classes
Note: See TracChangeset for help on using the changeset viewer.