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/mappaint/mapcss/ConditionFactory.java

    r10965 r11374  
    3030import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.ToTagConvertable;
    3131import org.openstreetmap.josm.tools.CheckParameterUtil;
     32import org.openstreetmap.josm.tools.JosmRuntimeException;
    3233import org.openstreetmap.josm.tools.Utils;
    3334
     
    819820                return not ^ (Boolean) method.invoke(null, e);
    820821            } catch (IllegalAccessException | InvocationTargetException ex) {
    821                 throw new RuntimeException(ex);
     822                throw new JosmRuntimeException(ex);
    822823            }
    823824        }
Note: See TracChangeset for help on using the changeset viewer.