Ignore:
Timestamp:
2017-03-19T02:26:34+01:00 (7 years ago)
Author:
Don-vip
Message:

PMD - Strict Exceptions

File:
1 edited

Legend:

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

    r11731 r11746  
    8686import org.openstreetmap.josm.tools.Geometry.AreaAndPerimeter;
    8787import org.openstreetmap.josm.tools.ImageProvider;
     88import org.openstreetmap.josm.tools.JosmRuntimeException;
    8889import org.openstreetmap.josm.tools.Utils;
    8990import org.openstreetmap.josm.tools.bugreport.BugReport;
     
    17351736                }
    17361737                return output;
    1737             } catch (RuntimeException e) {
     1738            } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
    17381739                throw BugReport.intercept(e).put("input-size", input.size()).put("output-size", output.size());
    17391740            } finally {
     
    17471748                    osm.accept(this);
    17481749                }
    1749             } catch (RuntimeException e) {
     1750            } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
    17501751                throw BugReport.intercept(e).put("osm", osm);
    17511752            }
     
    18551856
    18561857            benchmark.renderDone();
    1857         } catch (RuntimeException e) {
     1858        } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
    18581859            throw BugReport.intercept(e)
    18591860                    .put("data", data)
     
    18701871        try {
    18711872            record.paintPrimitive(paintSettings, this);
    1872         } catch (RuntimeException e) {
     1873        } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
    18731874            throw BugReport.intercept(e).put("record", record);
    18741875        }
Note: See TracChangeset for help on using the changeset viewer.