Ignore:
Timestamp:
2013-07-17T00:01:07+02:00 (12 years ago)
Author:
stoecker
Message:

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

Location:
trunk/src/org/openstreetmap/josm/data/coor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java

    r4126 r6069  
    77/**
    88 * LatLon class that maintains a cache of projected EastNorth coordinates.
    9  * 
     9 *
    1010 * This class is convenient to use, but has relatively high memory costs.
    11  * It keeps a pointer to the last known projection in order to detect projection 
     11 * It keeps a pointer to the last known projection in order to detect projection
    1212 * changes.
    13  * 
     13 *
    1414 * Node and WayPoint have another, optimized, cache for projected coordinates.
    1515 */
     
    4747    /**
    4848     * Replies the projected east/north coordinates.
    49      * 
     49     *
    5050     * @return the internally cached east/north coordinates. null, if the globally defined projection is null
    5151     */
  • trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java

    r4640 r6069  
    6060        return hd;
    6161    }
    62    
     62
    6363    /**
    6464     * Replies true if east and north are different from Double.NaN
    65      * 
     65     *
    6666     * @return true if east and north are different from Double.NaN
    6767     */
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r5909 r6069  
    4646        cDdFormatter.applyPattern("###0.0######");
    4747    }
    48    
     48
    4949    private static final String cDms60 = cDmsSecondFormatter.format(60.0);
    5050    private static final String cDms00 = cDmsSecondFormatter.format( 0.0);
     
    115115        int tMinutes = (int) tTmpMinutes;
    116116        double tSeconds = (tTmpMinutes - tMinutes) * 60;
    117        
     117
    118118        String sDegrees = Integer.toString(tDegree);
    119119        String sMinutes = cDmsMinuteFormatter.format(tMinutes);
    120120        String sSeconds = cDmsSecondFormatter.format(tSeconds);
    121        
     121
    122122        if (sSeconds.equals(cDms60)) {
    123123            sSeconds = cDms00;
     
    142142        int tDegree = (int) tAbsCoord;
    143143        double tMinutes = (tAbsCoord - tDegree) * 60;
    144        
     144
    145145        String sDegrees = Integer.toString(tDegree);
    146146        String sMinutes = cDmMinuteFormatter.format(tMinutes);
    147        
     147
    148148        if (sMinutes.equals(cDm60)) {
    149149            sMinutes = cDm00;
    150150            sDegrees = Integer.toString(tDegree+1);
    151151        }
    152        
     152
    153153        return sDegrees + "\u00B0" + sMinutes + "\'";
    154154    }
Note: See TracChangeset for help on using the changeset viewer.