Changeset 12171 in josm


Ignore:
Timestamp:
2017-05-15T17:55:56+02:00 (8 years ago)
Author:
michael2402
Message:

Fixed checkstyle warnings.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r12161 r12171  
    244244        for (int i = from + 1; i < to; i++) {
    245245            Node n = wnew.get(i);
     246            // CHECKSTYLE.OFF: SingleSpaceSeparator
    246247            double xte = Math.abs(Ellipsoid.WGS84.a
    247248                    * xtd(fromN.lat() * Math.PI / 180, fromN.lon() * Math.PI / 180, toN.lat() * Math.PI / 180,
    248249                            toN.lon() * Math.PI / 180,     n.lat() * Math.PI / 180,   n.lon() * Math.PI / 180));
     250            // CHECKSTYLE.ON: SingleSpaceSeparator
    249251            if (xte > xtemax) {
    250252                xtemax = xte;
  • trunk/src/org/openstreetmap/josm/data/Bounds.java

    r12162 r12171  
    2020 * lat/lon min/max values.  The values are rounded to LatLon.OSM_SERVER_PRECISION
    2121 *
     22 * @author imi
     23 *
    2224 * @see BBox to represent invalid areas.
    23  *
    24  * @author imi
    2525 */
    2626public class Bounds {
  • trunk/src/org/openstreetmap/josm/data/coor/ILatLon.java

    r12164 r12171  
    2222     * @return the longitude or NaN if {@link #isLatLonKnown()} returns false
    2323     */
    24     public double lon();
     24    double lon();
    2525
    2626    /**
     
    2828     * @return the latitude or NaN if {@link #isLatLonKnown()} returns false
    2929     */
    30     public double lat();
     30    double lat();
    3131
    3232    /**
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java

    r12156 r12171  
    7070     */
    7171    @FunctionalInterface
    72     public interface GpxTrackChangeListener {
     72    interface GpxTrackChangeListener {
    7373        /**
    7474         * Called when the gpx data changed.
  • trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java

    r12161 r12171  
    77package org.openstreetmap.josm.data.projection;
    88
    9 import org.openstreetmap.josm.data.coor.ILatLon;
    109import org.openstreetmap.josm.data.coor.LatLon;
    1110import org.openstreetmap.josm.tools.Utils;
  • trunk/src/org/openstreetmap/josm/data/projection/Projecting.java

    r12163 r12171  
    3636     * @param ll the geographical point to convert (in WGS84 lat/lon)
    3737     * @return the corresponding east/north coordinates
     38     * @see ILatLon#getEastNorth(Projecting) as shorthand.
    3839     * @since 12161
    39      * @see ILatLon#getEastNorth(Projecting)
    4040     */
    4141    EastNorth latlon2eastNorth(ILatLon ll);
     
    5151    /**
    5252     * Gets the base projection instance used.
     53     * This may be the same as this one or a different one if this one is translated in east/north space.
    5354     * @return The projection.
    5455     */
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r12168 r12171  
    178178    // The heat map was invalidated since the last draw.
    179179    private boolean gpxLayerInvalidated;
    180 
    181180
    182181    private void setupColors() {
     
    724723                Point screen = mv.getPoint(trkPnt.getEastNorth());
    725724
    726 
    727725                if (hdopCircle && trkPnt.get(GpxConstants.PT_HDOP) != null) {
    728726                    // hdop value
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java

    r12169 r12171  
    4747
    4848    /**
    49      * @throws java.lang.Exception
     49     * Set up empty test data
    5050     */
    5151    @Before
    52     public void setUp() throws Exception {
     52    public void setUp() {
    5353        data = new GpxData();
    5454    }
     
    281281    @Test
    282282    public void testLength() {
    283         ImmutableGpxTrack track1 = waypointGpxTrack(new WayPoint(new LatLon(0, 0)), new WayPoint(new LatLon(1, 1)), new WayPoint(new LatLon(0, 2)));
    284         ImmutableGpxTrack track2 = waypointGpxTrack(new WayPoint(new LatLon(0, 0)), new WayPoint(new LatLon(-1, 1)));
     283        ImmutableGpxTrack track1 = waypointGpxTrack(
     284                new WayPoint(new LatLon(0, 0)),
     285                new WayPoint(new LatLon(1, 1)),
     286                new WayPoint(new LatLon(0, 2)));
     287        ImmutableGpxTrack track2 = waypointGpxTrack(
     288                new WayPoint(new LatLon(0, 0)),
     289                new WayPoint(new LatLon(-1, 1)));
    285290        data.addTrack(track1);
    286291        data.addTrack(track2);
Note: See TracChangeset for help on using the changeset viewer.