Ignore:
Timestamp:
2016-03-12T23:18:04+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - remove useless parentheses

Location:
trunk/src/org/openstreetmap/josm/data
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/CachedAttributionBingAerialTileSource.java

    r9171 r9970  
    7070                    try {
    7171                        String xml = attributionLoader.updateIfRequiredString();
    72                         List<Attribution> ret = parseAttributionText(new InputSource(new StringReader((xml))));
     72                        List<Attribution> ret = parseAttributionText(new InputSource(new StringReader(xml)));
    7373                        if (attributionDownloadedTask != null) {
    7474                            GuiHelper.runInEDT(attributionDownloadedTask);
  • trunk/src/org/openstreetmap/josm/data/oauth/SignpostAdapters.java

    r9669 r9970  
    77import java.util.Map;
    88
     9import org.openstreetmap.josm.tools.HttpClient;
     10
    911import oauth.signpost.AbstractOAuthConsumer;
    1012import oauth.signpost.AbstractOAuthProvider;
    11 
    12 import org.openstreetmap.josm.tools.HttpClient;
    1313
    1414/**
     
    5454        @Override
    5555        protected HttpRequest wrap(Object request) {
    56             return new HttpRequest(((HttpClient) request));
     56            return new HttpRequest((HttpClient) request);
    5757        }
    5858    }
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r9961 r9970  
    292292    protected OsmPrimitive(long id, int version, boolean allowNegativeId) {
    293293        this(id, allowNegativeId);
    294         this.version = (id > 0 ? version : 0);
     294        this.version = id > 0 ? version : 0;
    295295        setIncomplete(id > 0 && version == 0);
    296296    }
  • trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java

    r9558 r9970  
    110110        double  cosphi = Math.cos(phi1);
    111111        double  n      = sinphi;
    112         boolean secant = (Math.abs(phi1 - phi2) >= EPSILON);
     112        boolean secant = Math.abs(phi1 - phi2) >= EPSILON;
    113113        double m1 = msfn(sinphi, cosphi);
    114114        double q1 = qsfn(sinphi);
     
    206206        if (e >= EPSILON) {
    207207            final double con = e * sinphi;
    208             return (one_es * (sinphi / (1. - con*con) -
    209                     (0.5/e) * Math.log((1.-con) / (1.+con))));
     208            return one_es * (sinphi / (1. - con*con) -
     209                    (0.5/e) * Math.log((1.-con) / (1.+con)));
    210210        } else {
    211211            return sinphi + sinphi;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertAzimuthalEqualArea.java

    r9636 r9970  
    258258        if (e >= EPSILON) {
    259259            final double con = e * sinphi;
    260             return ((1.0 - e2) * (sinphi / (1.0 - con*con) -
    261                     (0.5 / e) * Math.log((1.0 - con) / (1.0 + con))));
     260            return (1.0 - e2) * (sinphi / (1.0 - con*con) -
     261                    (0.5 / e) * Math.log((1.0 - con) / (1.0 + con)));
    262262        } else {
    263263            return sinphi + sinphi;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java

    r9558 r9970  
    381381                u = AB * x;
    382382            } else {
    383                 u = ArB * Math.atan2((S * cosgamma0 + V * singamma0), temp);
     383                u = ArB * Math.atan2(S * cosgamma0 + V * singamma0, temp);
    384384            }
    385385        } else {
     
    408408            y = Math.pow(E / Math.sqrt((1. + Up) / (1. - Up)), 1.0 / B);  //calculate t
    409409            y = cphi2(y);
    410             x = -Math.atan2((Sp * cosgamma0 - Vp * singamma0), Math.cos(BrA * u)) / B;
     410            x = -Math.atan2(Sp * cosgamma0 - Vp * singamma0, Math.cos(BrA * u)) / B;
    411411        }
    412412        return new double[] {y, x};
  • trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java

    r9559 r9970  
    161161            if (Math.abs(phi-phi0) < ITERATION_TOLERANCE) {
    162162                x = (Math.abs(rho) < EPSILON) ? 0.0 : Math.atan2(x, -y);
    163                 y = (southPole) ? -phi : phi;
     163                y = southPole ? -phi : phi;
    164164                break;
    165165            }
  • trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java

    r9558 r9970  
    137137
    138138        /* NOTE: meridinal distance at latitudeOfOrigin is always 0 */
    139         y = (mlfn(y, sinphi, cosphi) - ml0 +
     139        y = mlfn(y, sinphi, cosphi) - ml0 +
    140140            sinphi * al * x *
    141141            FC2 * (1.0 +
    142142            FC4 * als * (5.0 - t + n*(9.0 + 4.0*n) +
    143143            FC6 * als * (61.0 + t * (t - 58.0) + n*(270.0 - 330.0*t) +
    144             FC8 * als * (1385.0 + t * (t*(543.0 - t) - 3111.0))))));
     144            FC8 * als * (1385.0 + t * (t*(543.0 - t) - 3111.0)))));
    145145
    146146        x = al*(FC1 + FC3 * als*(1.0 - t + n +
  • trunk/src/org/openstreetmap/josm/data/validation/util/Entities.java

    r8848 r9970  
    393393                        }
    394394                        String value = mapNameToValue.get(entityContent);
    395                         entityValue = (value == null ? -1 : Integer.parseInt(value));
     395                        entityValue = value == null ? -1 : Integer.parseInt(value);
    396396                    }
    397397                }
Note: See TracChangeset for help on using the changeset viewer.