Revision 42271 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/ring/AbstractRing.java
AbstractRing.java | ||
---|---|---|
225 | 225 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#ensureCapacity(int) |
226 | 226 |
*/ |
227 | 227 |
public void ensureCapacity(int capacity) { |
228 |
// TODO Auto-generated method stub |
|
229 |
|
|
228 |
coordinates.ensureCapacity(capacity); |
|
230 | 229 |
} |
231 | 230 |
|
232 | 231 |
/* (non-Javadoc) |
... | ... | |
236 | 235 |
if (ct == null) { |
237 | 236 |
return; |
238 | 237 |
} |
239 |
for (Iterator iterator = coordinates.iterator(); iterator.hasNext();) { |
|
238 |
for (Iterator<Coordinate> iterator = coordinates.iterator(); iterator.hasNext();) {
|
|
240 | 239 |
Coordinate coordinate = (Coordinate) iterator.next(); |
241 | 240 |
|
242 | 241 |
java.awt.geom.Point2D p = new java.awt.geom.Point2D.Double(coordinate.x, coordinate.y); |
... | ... | |
264 | 263 |
return; |
265 | 264 |
} |
266 | 265 |
|
267 |
for (Iterator iterator = coordinates.iterator(); iterator.hasNext();) { |
|
266 |
for (Iterator<Coordinate> iterator = coordinates.iterator(); iterator.hasNext();) {
|
|
268 | 267 |
Coordinate coordinate = (Coordinate) iterator.next(); |
269 | 268 |
java.awt.geom.Point2D p = new java.awt.geom.Point2D.Double(coordinate.x, coordinate.y); |
270 | 269 |
|
Also available in: Unified diff