Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
if (validateColor(strColor)) {
this.strColor = strColor;
} else {
- throw new IllegalArgumentException("Color must be" + new Eye().colorListToString());
+ throw new IllegalArgumentException("Color must be" + this.colorListToString());
}
}
this.color = new Color(88, 41, 0);
else
this.color = Color.getColor(color);
-
} else {
- throw new IllegalArgumentException("Color must be" + new Eye().colorListToString());
+ throw new IllegalArgumentException("Color must be" + this.colorListToString());
}
}