Changeset 19983 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-02-12T22:33:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r19977 r19983 16 16 import java.util.LinkedList; 17 17 import java.util.List; 18 import java.util.ListIterator; 18 19 import java.util.Map; 19 20 import java.util.TreeMap; … … 81 82 if (route.get("route") != null) 82 83 { 84 if (rr.route.get("route") == null) 85 return -1; 83 86 int result = route.get("route").compareTo(rr.route.get("route")); 84 87 if (result != 0) … … 89 92 if (route.get("ref") != null) 90 93 { 94 if (rr.route.get("ref") == null) 95 return -1; 91 96 int result = route.get("ref").compareTo(rr.route.get("ref")); 92 97 if (result != 0) … … 97 102 if (route.get("to") != null) 98 103 { 104 if (rr.route.get("to") == null) 105 return -1; 99 106 int result = route.get("to").compareTo(rr.route.get("to")); 100 107 if (result != 0) … … 105 112 if (route.get("direction") != null) 106 113 { 114 if (rr.route.get("direction") == null) 115 return -1; 107 116 int result = route.get("direction").compareTo(rr.route.get("direction")); 108 117 if (result != 0) … … 1845 1854 frontNodes.remove(firstListNode); 1846 1855 LinkedList<RelationMember> listToAppend = frontNodes.get(lastNode); 1847 Iterator<RelationMember> memberIter = list.descendingIterator();1848 while (memberIter.has Next())1849 { 1850 RelationMember member = memberIter. next();1856 ListIterator<RelationMember> memberIter = list.listIterator(list.size()); 1857 while (memberIter.hasPrevious()) 1858 { 1859 RelationMember member = memberIter.previous(); 1851 1860 listToAppend.addFirst(member); 1852 1861 } … … 1858 1867 frontNodes.remove(firstListNode); 1859 1868 LinkedList<RelationMember> listToAppend = backNodes.get(lastNode); 1860 Iterator<RelationMember> memberIter = list.descendingIterator();1861 while (memberIter.has Next())1862 { 1863 RelationMember member = memberIter. next();1869 ListIterator<RelationMember> memberIter = list.listIterator(list.size()); 1870 while (memberIter.hasPrevious()) 1871 { 1872 RelationMember member = memberIter.previous(); 1864 1873 if ("backward".equals(member.getRole())) 1865 1874 listToAppend.addLast(new RelationMember("forward", member.getWay()));
Note:
See TracChangeset
for help on using the changeset viewer.