Ignore:
Timestamp:
2016-12-09T23:31:13+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S00112 - Generic exceptions should never be thrown: define JosmRuntimeException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r11017 r11374  
    3737import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel;
    3838import org.openstreetmap.josm.tools.GBC;
     39import org.openstreetmap.josm.tools.JosmRuntimeException;
    3940
    4041/**
     
    479480        // should have been set to Mercator at JOSM start.
    480481        if (pc == null)
    481             throw new RuntimeException("Couldn't find the current projection in the list of available projections!");
     482            throw new JosmRuntimeException("Couldn't find the current projection in the list of available projections!");
    482483
    483484        projectionCombo.addActionListener(e -> {
Note: See TracChangeset for help on using the changeset viewer.