Changeset 30737 in osm for applications/editors/josm/plugins/tracer2
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/ConnectWays.java
r30047 r30737 146 146 */ 147 147 public static Command connect(Way newWay, LatLon pos, ServerParam param, boolean ctrl, boolean alt) { 148 LinkedList<Command> cmds = new LinkedList< Command>();149 LinkedList<Command> cmds2 = new LinkedList< Command>();148 LinkedList<Command> cmds = new LinkedList<>(); 149 LinkedList<Command> cmds2 = new LinkedList<>(); 150 150 151 151 s_oParam = param; … … 214 214 */ 215 215 public static List<Command> connectTo() { 216 Map<Way, Way> modifiedWays = new HashMap< Way, Way>();217 LinkedList<Command> cmds = new LinkedList< Command>();216 Map<Way, Way> modifiedWays = new HashMap<>(); 217 LinkedList<Command> cmds = new LinkedList<>(); 218 218 Way way = new Way(s_oWay); 219 219 for (int i = 0; i < way.getNodesCount() - 1; i++) { … … 271 271 */ 272 272 private static List<Command> mergeNodes(Node n1, Node n2){ 273 List<Command> cmds = new LinkedList< Command>();273 List<Command> cmds = new LinkedList<>(); 274 274 cmds.add(new MoveCommand(n2, 275 275 (n1.getEastNorth().getX() - n2.getEastNorth().getX())/2, -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TagValues.java
r30047 r30737 53 53 54 54 // get values 55 List<String> tagValues = new ArrayList< String>();55 List<String> tagValues = new ArrayList<>(); 56 56 List<AutoCompletionListItem> values = Main.main.getCurrentDataSet().getAutoCompletionManager().getValues(m_strTag); 57 57 for ( AutoCompletionListItem i : values ) { … … 65 65 } else { 66 66 String[] prefered = m_strPreferredValues.split(";"); 67 tagValues = new ArrayList< String>();67 tagValues = new ArrayList<>(); 68 68 69 69 for (String str: prefered) { -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerAction.java
r30077 r30737 83 83 84 84 Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected(); 85 List<Command> commands = new ArrayList< Command>();85 List<Command> commands = new ArrayList<>(); 86 86 87 87 if ( checkActiveServerParam() == false ) return; … … 281 281 282 282 private void traceSync(LatLon pos, ProgressMonitor progressMonitor) { 283 Collection<Command> commands = new LinkedList< Command>();283 Collection<Command> commands = new LinkedList<>(); 284 284 285 285 progressMonitor.beginTask(null, 3); … … 305 305 coordList = oTraceSimple.m_listLatLon; 306 306 } catch (Exception e) { 307 coordList = new ArrayList< LatLon>();307 coordList = new ArrayList<>(); 308 308 } 309 309 -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerDebug.java
r30047 r30737 66 66 Collection<? extends OsmPrimitive> cpx = null; 67 67 68 List<OsmPrimitive> lp1 = new LinkedList< OsmPrimitive>();69 List<OsmPrimitive> lp2 = new LinkedList< OsmPrimitive>();70 List<OsmPrimitive> lp3 = new LinkedList< OsmPrimitive>();71 List<OsmPrimitive> lp = new LinkedList< OsmPrimitive>();68 List<OsmPrimitive> lp1 = new LinkedList<>(); 69 List<OsmPrimitive> lp2 = new LinkedList<>(); 70 List<OsmPrimitive> lp3 = new LinkedList<>(); 71 List<OsmPrimitive> lp = new LinkedList<>(); 72 72 73 73 cp1 = lp1; -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamList.java
r30047 r30737 29 29 30 30 public class ServerParamList { 31 ArrayList<ServerParam> m_listServerParam = new ArrayList< ServerParam>();31 ArrayList<ServerParam> m_listServerParam = new ArrayList<>(); 32 32 ServerParam m_oActivParam = null; 33 33 String m_strFilename; … … 107 107 108 108 public List<ServerParam> getEnableParamList() { 109 List<ServerParam> listParam = new ArrayList< ServerParam>();109 List<ServerParam> listParam = new ArrayList<>(); 110 110 for ( ServerParam param: m_listServerParam) { 111 111 if (param.isEnabled()) { -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/server/GetTrace.java
r30047 r30737 28 28 private LatLon m_oLatLon; 29 29 private ServerParam m_oServerParam; 30 public ArrayList<LatLon> m_listLatLon = new ArrayList< LatLon>();30 public ArrayList<LatLon> m_listLatLon = new ArrayList<>(); 31 31 32 32 /** … … 71 71 strResponse = strResponse.substring(1, strResponse.length()-1); 72 72 73 ArrayList<LatLon> nodelist = new ArrayList< LatLon>();73 ArrayList<LatLon> nodelist = new ArrayList<>(); 74 74 75 75 String[] astrPoints = strResponse.split("\\)\\("); … … 82 82 m_listLatLon = nodelist; 83 83 } catch (Exception e) { 84 m_listLatLon = new ArrayList< LatLon>();84 m_listLatLon = new ArrayList<>(); 85 85 } 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.