clipper-java icon indicating copy to clipboard operation
clipper-java copied to clipboard

need use equals for reference types

Open myinvoke opened this issue 6 years ago • 1 comments

    ClipperOffset.java---60
//need use equals for reference types
        while (highI > 0 && path.get( 0 ).equals(path.get( highI ))) {

myinvoke avatar May 08 '19 02:05 myinvoke

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)) {

murkle avatar Jun 12 '20 06:06 murkle