clipper-java
clipper-java copied to clipboard
need use equals for reference types
ClipperOffset.java---60
//need use equals for reference types
while (highI > 0 && path.get( 0 ).equals(path.get( highI ))) {
So you suggest changing
while (highI > 0 && path.get(0) == path.get(highI)) {
to
while (highI > 0 && path.get(0).equals(path.get(highI))) {
What about this one?
if (newNode.getPolygon().get(j) != path.get(i)) {