We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f47b3df + 9caf924 commit 26e5486Copy full SHA for 26e5486
src/main/java/net/itarray/automotion/validation/ResponsiveUIValidator.java
@@ -216,6 +216,9 @@ public void setLinesColor(Color color) {
216
* @return
217
*/
218
public ResponsiveUIValidator withTolerance(int tolerance) {
219
+ if (tolerance < 0) {
220
+ throw new IllegalArgumentException("tolerance needs to be greater or equal to zero, tolerance supplied was " + tolerance);
221
+ }
222
this.tolerance = scalar(tolerance);
223
return this;
224
}
0 commit comments