Ignore:
Timestamp:
2016-05-17T02:02:30+02:00 (8 years ago)
Author:
Don-vip
Message:

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

File:
1 edited

Legend:

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

    r10001 r10235  
    100100        while (abs(phi - phiprev) > EPSILON) {
    101101            if (++iteration > 10)
    102                 throw new RuntimeException("Too many iterations");
     102                throw new IllegalStateException("Too many iterations");
    103103            phiprev = phi;
    104104            double psii = log(tan(phi/2 + PI/4) * pow((1 - e * sin(phi)) / (1 + e * sin(phi)), e/2));
Note: See TracChangeset for help on using the changeset viewer.