Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Jan 11, 2018
1 parent 4b6bbce commit f65489b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,26 +505,26 @@ private void startIndeterminateAnimations() {
}
}

private void checkStartAngle(float angle) {
private static void checkStartAngle(float angle) {
if (angle < -360f || angle > 360f) {
throw new IllegalArgumentException("Start angle value should be between -360 and 360 degrees (inclusive)");
}
}

private void checkIndeterminateMinimumAngle(float angle) {
private static void checkIndeterminateMinimumAngle(float angle) {
if (angle < 0f || angle > 180f) {
throw new IllegalArgumentException(
"Indeterminate minimum angle value should be between 0 and 180 degrees (inclusive)");
}
}

private void checkAnimationDuration(long duration) {
private static void checkAnimationDuration(long duration) {
if (duration < 0) {
throw new IllegalArgumentException("Animation duration can't be negative");
}
}

private void checkWidth(float width) {
private static void checkWidth(float width) {
if (width < 0f) {
throw new IllegalArgumentException("Width can't be negative");
}
Expand Down

0 comments on commit f65489b

Please sign in to comment.