Ignore:
Timestamp:
2014-08-05T13:53:46+02:00 (11 years ago)
Author:
donvip
Message:

[josm_opendata] improve unit tests, fix java 7 warnings, replace interface by abstract class, move some constants out of OdConstants due to strange bug with Junit

Location:
applications/editors/josm/plugins/opendata/modules/fr.paris/src/org/openstreetmap/josm/plugins/opendata/modules/fr/paris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/modules/fr.paris/src/org/openstreetmap/josm/plugins/opendata/modules/fr/paris/ParisConstants.java

    r30340 r30563  
    22package org.openstreetmap.josm.plugins.opendata.modules.fr.paris;
    33
    4 import org.openstreetmap.josm.plugins.opendata.core.OdConstants;
    54
    6 public interface ParisConstants extends OdConstants {
     5public interface ParisConstants {
    76               
    87        /**
  • applications/editors/josm/plugins/opendata/modules/fr.paris/src/org/openstreetmap/josm/plugins/opendata/modules/fr/paris/datasets/ParisShpHandler.java

    r30340 r30563  
    1414import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1515import org.openstreetmap.josm.data.osm.Way;
     16import org.openstreetmap.josm.plugins.opendata.core.OdConstants;
    1617import org.openstreetmap.josm.plugins.opendata.core.datasets.fr.FrenchShpHandler;
    1718
    1819public class ParisShpHandler extends FrenchShpHandler {
    1920       
    20         public final Map<String, Node> nodeMap = new HashMap<String, Node>();
     21        public final Map<String, Node> nodeMap = new HashMap<>();
    2122       
    2223        protected OsmPrimitive dataPrimitive;
     
    2627       
    2728        public ParisShpHandler() {
    28                 setDbfCharset(Charset.forName(CP850));
     29                setDbfCharset(Charset.forName(OdConstants.CP850));
    2930        }
    3031       
     
    5556                dataPrimitive = null;
    5657                closedWay = null;
    57                 ways = new ArrayList<Way>();
    58                 nodes = new ArrayList<Node>();
     58                ways = new ArrayList<>();
     59                nodes = new ArrayList<>();
    5960                for (OsmPrimitive p : featurePrimitives) {
    6061                        if (p.hasKeys()) {
Note: See TracChangeset for help on using the changeset viewer.