}
private Polygon undo(Polygon polygon) {
Polygon result = null;
if (index.getInteriorRingIndex() >= 0) {
InsertRingOperation op = new InsertRingOperation(interiorRing, index.getInteriorRingIndex());
result = (Polygon) op.execute(polygon);
}
if (result != null) {
return result;
}
return polygon;