Skip to content

Commit

Permalink
fixed files form Chart #6
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent a8fddf4 commit fa35b48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion projects/Chart/6/org/jfree/chart/util/ShapeList.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ public boolean equals(Object obj) {
if (!(obj instanceof ShapeList)) {
return false;
}
return super.equals(obj);
ShapeList that = (ShapeList) obj;
int listSize = size();
for (int i = 0; i < listSize; i++) {
if (!ShapeUtilities.equal((Shape) get(i), (Shape) that.get(i))) {
return false;
}
}
return true;

}

Expand Down

0 comments on commit fa35b48

Please sign in to comment.