Changeset 9534 in josm for trunk


Ignore:
Timestamp:
2016-01-19T00:07:17+01:00 (9 years ago)
Author:
Don-vip
Message:

see #12186 - checkstyle

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

Legend:

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

    r9532 r9534  
    163163        final double eccnth = 0.5 * e;
    164164        double phi = (Math.PI/2) - 2.0 * Math.atan(ts);
    165         for (int i=0; i<MAXIMUM_ITERATIONS; i++) {
     165        for (int i = 0; i < MAXIMUM_ITERATIONS; i++) {
    166166            final double con  = e * Math.sin(phi);
    167167            final double dphi = (Math.PI/2) - 2.0*Math.atan(ts * Math.pow((1-con)/(1+con), eccnth)) - phi;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java

    r9532 r9534  
    115115 * </ul>
    116116 *
     117 * @author Gerald I. Evenden (for original code in Proj4)
     118 * @author  Rueben Schulz
     119 *
    117120 * @see <A HREF="http://mathworld.wolfram.com/MercatorProjection.html">Oblique Mercator projection on MathWorld</A>
    118121 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/hotine_oblique_mercator.html">"hotine_oblique_mercator" on RemoteSensing.org</A>
    119122 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/oblique_mercator.html">"oblique_mercator" on RemoteSensing.org</A>
    120  *
    121  * @author Gerald I. Evenden (for original code in Proj4)
    122  * @author  Rueben Schulz
    123123 */
    124124public class ObliqueMercator extends AbstractProj implements ICentralMeridianProvider {
     
    307307            azimuth = Math.toRadians(params.alpha);
    308308            if ((azimuth > -1.5*Math.PI && azimuth < -0.5*Math.PI) ||
    309                 (azimuth >  0.5*Math.PI && azimuth <  1.5*Math.PI))
    310             {
    311                 throw new ProjectionConfigurationException(tr("Illegal value for parameter ''{0}'': {1}", "alpha", Double.toString(params.alpha)));
     309                (azimuth >  0.5*Math.PI && azimuth <  1.5*Math.PI)) {
     310                throw new ProjectionConfigurationException(
     311                        tr("Illegal value for parameter ''{0}'': {1}", "alpha", Double.toString(params.alpha)));
    312312            }
    313313            if (params.gamma != null) {
     
    388388        x = v * cosrot + u * sinrot;
    389389        y = u * cosrot - v * sinrot;
    390         return new double[] {x,y};
     390        return new double[] {x, y};
    391391    }
    392392
Note: See TracChangeset for help on using the changeset viewer.