Changeset 19113 in josm for trunk/src


Ignore:
Timestamp:
2024-06-18T22:29:22+02:00 (7 months ago)
Author:
taylor.smock
Message:

Update PMD to 7.2.0

A bunch of rules were deprecated and replaced and the XPath expressions had to be updated from XPath 1 to XPath 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r19108 r19113  
    3838import org.openstreetmap.josm.tools.Utils;
    3939import org.openstreetmap.josm.tools.bugreport.BugReport;
     40import org.openstreetmap.josm.tools.bugreport.ReportedException;
    4041
    4142/**
     
    223224     * @param pref the string that defines the custom projection
    224225     */
    225     @SuppressWarnings("PMD.PreserveStackTrace") // PMD 7.2.x doesn't like log + new exception here for some reason.
    226226    public CustomProjection(String name, String code, String pref) {
    227227        this.name = name;
     
    235235                update(null);
    236236            } catch (ProjectionConfigurationException ex1) {
    237                 throw BugReport.intercept(ex1).put("name", name).put("code", code).put("pref", pref);
     237                ReportedException reportedException = BugReport.intercept(ex1).put("name", name).put("code", code).put("pref", pref);
     238                reportedException.addSuppressed(ex);
     239                throw reportedException;
    238240            }
    239241        }
Note: See TracChangeset for help on using the changeset viewer.