Ignore:
Timestamp:
2017-12-17T01:25:46+01:00 (2 years ago)
Author:
Don-vip
Message:

enable PMD rule PreserveStackTrace + add missing jars to run new PMD rule designer

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r12846 r13207  
    66import java.awt.Graphics2D;
    77import java.lang.reflect.Constructor;
    8 import java.lang.reflect.InvocationTargetException;
    98import java.text.MessageFormat;
    109import java.util.ArrayList;
     
    307306            Constructor<?> c = activeRenderer.getConstructor(Graphics2D.class, NavigatableComponent.class, boolean.class);
    308307            return AbstractMapRenderer.class.cast(c.newInstance(g, viewport, isInactiveMode));
    309         } catch (InvocationTargetException e) {
    310             Logging.debug(e);
    311             throw new MapRendererFactoryException(e.getCause());
    312308        } catch (ReflectiveOperationException | IllegalArgumentException e) {
    313309            throw new MapRendererFactoryException(e);
  • trunk/src/org/openstreetmap/josm/data/projection/ProjectionCLI.java

    r12892 r13207  
    196196            return Double.parseDouble(s);
    197197        } catch (NumberFormatException nfe) {
    198             throw new IllegalArgumentException(tr("Unable to parse number ''{0}''", s));
     198            throw new IllegalArgumentException(tr("Unable to parse number ''{0}''", s), nfe);
    199199        }
    200200    }
Note: See TracChangeset for help on using the changeset viewer.