From f65489b1286b91050861fdfe7ae6e752261934f4 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Thu, 11 Jan 2018 18:52:32 +0300 Subject: [PATCH] Dev --- .../android/circularprogressbar/CircularProgressBar.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index 6d34433..7d87418 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -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"); }