Ignore:
Timestamp:
2017-03-10T02:28:00+01:00 (7 years ago)
Author:
Don-vip
Message:

add Ant target to run PMD (only few rules for now), fix violations

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1212junit*.properties
        1313foobar
         14pmd-josm.xml
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java

    r10824 r11713  
    44import static org.junit.Assert.assertEquals;
    55
    6 import java.awt.Color;
    76import java.io.FileNotFoundException;
    87import java.io.IOException;
     
    1817import org.openstreetmap.josm.data.gpx.GpxData;
    1918import org.openstreetmap.josm.data.gpx.WayPoint;
    20 import org.openstreetmap.josm.data.preferences.ColorProperty;
    2119import org.openstreetmap.josm.io.GpxReaderTest;
    2220import org.openstreetmap.josm.tools.ColorHelper;
     
    127125    static List<String> calculateColors(String fileName, String layerName, int n) throws IOException, SAXException {
    128126        final GpxData data = GpxReaderTest.parseGpxData(fileName);
    129         final GpxDrawHelper gdh = new GpxDrawHelper(data, new ColorProperty("x", Color.MAGENTA));
     127        final GpxDrawHelper gdh = new GpxDrawHelper(data);
    130128        gdh.readPreferences(layerName);
    131129        gdh.calculateColors();
Note: See TracChangeset for help on using the changeset viewer.