Changeset 6113 in josm
- Timestamp:
- 2013-08-06T22:02:27+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r6069 r6113 192 192 193 193 /** 194 * Rest are relations. Do topological sorting on a DAG where each 195 * arrow points from child to parent. (Because it is faster to 196 * loop over getReferrers() than getMembers().) 197 */ 194 * Rest are relations. Do topological sorting on a DAG where each 195 * arrow points from child to parent. (Because it is faster to 196 * loop over getReferrers() than getMembers().) 197 */ 198 @SuppressWarnings({ "unchecked", "rawtypes" }) 198 199 Set<Relation> inR = (Set) in; 199 200 Set<Relation> childlessR = new HashSet<Relation>(); -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r6093 r6113 102 102 // testing. Child access is one of the single 103 103 // hottest code paths in this entire class. 104 @SuppressWarnings("unchecked") 104 105 QBLevel[] result = (QBLevel[]) Array.newInstance(this.getClass(), QuadTiling.TILES_PER_LEVEL); 105 106 result[NW_INDEX] = nw; -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r6084 r6113 154 154 * @param bounds display boundaries 155 155 */ 156 @SuppressWarnings("unchecked") 156 157 @Override 157 158 public void render(DataSet data, boolean virtual, Bounds bounds) { -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r6093 r6113 88 88 } 89 89 90 @SuppressWarnings("unchecked") 90 91 @Override 91 92 public void visit(Relation n) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r6101 r6113 158 158 objKey=key; 159 159 160 @SuppressWarnings("unchecked") 160 161 final EditTagDialog editDialog = new EditTagDialog(key, row, 161 162 (Map<String, Integer>) propertyData.getValueAt(row, 1), focusOnKey); … … 164 165 editDialog.performTagEdit(); 165 166 } 167 166 168 /** 167 169 * If during last editProperty call user changed the key name, this key will be returned -
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6093 r6113 49 49 public static Set<Node> addIntersections(List<Way> ways, boolean test, List<Command> cmds) { 50 50 51 //stupid java, cannot instantiate array of generic classes..51 int n = ways.size(); 52 52 @SuppressWarnings("unchecked") 53 int n = ways.size();54 53 ArrayList<Node>[] newNodes = new ArrayList[n]; 55 54 BBox[] wayBounds = new BBox[n]; … … 67 66 //iterate over all way pairs and introduce the intersections 68 67 Comparator<Node> coordsComparator = new NodePositionComparator(); 69 WayLoop:for (int seg1Way = 0; seg1Way < n; seg1Way ++) {68 for (int seg1Way = 0; seg1Way < n; seg1Way ++) { 70 69 for (int seg2Way = seg1Way; seg2Way < n; seg2Way ++) { 71 70
Note:
See TracChangeset
for help on using the changeset viewer.