Ignore:
Timestamp:
2016-03-15T09:08:59+01:00 (4 years ago)
Author:
Don-vip
Message:

sonar - remove fields used as local variables only

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

Legend:

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

    r9970 r9998  
    7171    private double ec;
    7272
    73     /**
    74      * Standards parallel 1 in radians.
    75      */
    76     private double phi1;
    77 
    78     /**
    79      * Standards parallel 2 in radians.
    80      */
    81     private double phi2;
    82 
    8373    @Override
    8474    public String getName() {
     
    10090
    10191        double lat0 = Math.toRadians(params.lat0);
    102         phi1 = Math.toRadians(params.lat1);
    103         phi2 = params.lat2 == null ? phi1 : Math.toRadians(params.lat2);
     92        // Standards parallels in radians.
     93        double phi1 = Math.toRadians(params.lat1);
     94        double phi2 = params.lat2 == null ? phi1 : Math.toRadians(params.lat2);
    10495
    10596        // Compute Constants
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertAzimuthalEqualArea.java

    r9974 r9998  
    5454
    5555    /** Constant parameters. */
    56     private double sinb1, cosb1, xmf, ymf, mmf, qp, dd, rq;
     56    private double sinb1, cosb1, xmf, ymf, qp, dd, rq;
    5757
    5858    /** Coefficients for authalic latitude. */
     
    102102        qp     = qsfn(1);
    103103        rq     = Math.sqrt(0.5 * qp);
    104         mmf    = 0.5 / (1 - e2);
    105104        sinphi = Math.sin(latitudeOfOrigin);
    106105        sinb1 = qsfn(sinphi) / qp;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java

    r9974 r9998  
    162162
    163163    /**
    164      * Convenience values equal to {@link #a} / {@link #b},
    165      * {@link #a}×{@link #b}, and {@link #b} / {@link #a}.
    166      */
    167     private double arb, ab, bra;
     164     * Convenience value equal to {@link #a} / {@link #b}.
     165     */
     166    private double arb;
     167
     168    /**
     169     * Convenience value equal to {@link #a}×{@link #b}.
     170     */
     171    private double ab;
     172
     173    /**
     174     * Convenience value equal to {@link #b} / {@link #a}.
     175     */
     176    private double bra;
    168177
    169178    /**
  • trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java

    r9970 r9998  
    7979
    8080    /**
    81      * Latitude of true scale, in radians
    82      */
    83     private double latitudeTrueScale;
    84 
    85     /**
    8681     * {@code true} if this projection is for the south pole, or {@code false}
    8782     * if it is for the north pole.
     
    107102            throw new ProjectionConfigurationException(
    108103                    tr("Polar Stereographic: Parameter ''{0}'' must be 90 or -90.", "lat_0"));
     104        // Latitude of true scale, in radians;
     105        double latitudeTrueScale;
    109106        if (params.lat_ts == null) {
    110107            latitudeTrueScale = (params.lat0 < 0) ? -Math.PI/2 : Math.PI/2;
Note: See TracChangeset for help on using the changeset viewer.