Revision 47355 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.snapping.app/org.gvsig.snapping.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toolListeners/snapping/snappers/IntersectionPointSnapper.java
IntersectionPointSnapper.java | ||
---|---|---|
157 | 157 |
Point2D point, |
158 | 158 |
double tolerance) throws Exception { |
159 | 159 |
|
160 |
List<Geometry> resp = new ArrayList<Geometry>();
|
|
161 |
if (geomlist == null || geomlist.size() == 0) {
|
|
160 |
List<Geometry> resp = new ArrayList<>(); |
|
161 |
if (geomlist == null || geomlist.isEmpty()) {
|
|
162 | 162 |
return resp; |
163 | 163 |
} |
164 | 164 |
|
... | ... | |
200 | 200 |
} |
201 | 201 |
|
202 | 202 |
public String getToolTipText() { |
203 |
return Messages.getText("Intersection_point_snapper");
|
|
203 |
return Messages.getText("_Intersection_point");
|
|
204 | 204 |
} |
205 | 205 |
|
206 | 206 |
public void setGeometries(List geoms) { |
... | ... | |
209 | 209 |
|
210 | 210 |
private List<Point> getInterPoints(List geomes) { |
211 | 211 |
|
212 |
List<Point> resp = new ArrayList<Point>();
|
|
212 |
List<Point> resp = new ArrayList<>(); |
|
213 | 213 |
List borders = getJTSBorders(geomes); |
214 | 214 |
com.vividsolutions.jts.geom.Geometry jtsg1 = null; |
215 | 215 |
com.vividsolutions.jts.geom.Geometry jtsg2 = null; |
Also available in: Unified diff