Skip to content
Snippets Groups Projects
Commit 37446083 authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

ByteGrayColor : equals using greaylevel

parent 9df5bb85
Branches
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ public class ByteGrayColor implements GrayColor {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
ByteGrayColor color = (ByteGrayColor) o;
return this.compareTo(color) == 0;
return grayLevel == color.grayLevel;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment