فهرست منبع

class does not need to be generic

Sebastian Stenzel 2 سال پیش
والد
کامیت
2448963161
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/main/java/org/cryptomator/ui/common/AutoAnimator.java

+ 4 - 4
src/main/java/org/cryptomator/ui/common/AutoAnimator.java

@@ -12,15 +12,15 @@ import javafx.beans.value.ObservableValue;
  * <p>
  * During creation the consumer can optionally define actions to be executed everytime before the animation starts and after it stops.
  */
-public class AutoAnimator<T extends Animation> {
+public class AutoAnimator {
 
-	private final T animation;
+	private final Animation animation;
 	private final ObservableValue<Boolean> condition;
 	private final Runnable beforeStart;
 	private final Runnable afterStop;
 	private final Subscription sub;
 
-	AutoAnimator(T animation, ObservableValue<Boolean> condition, Runnable beforeStart, Runnable afterStop) {
+	AutoAnimator(Animation animation, ObservableValue<Boolean> condition, Runnable beforeStart, Runnable afterStop) {
 		this.animation = animation;
 		this.condition = condition;
 		this.beforeStart = beforeStart;
@@ -52,7 +52,7 @@ public class AutoAnimator<T extends Animation> {
 
 	public static class Builder {
 
-		private Animation animation;
+		private final Animation animation;
 		private ObservableValue<Boolean> condition = new SimpleBooleanProperty(true);
 		private Runnable beforeStart = () -> {};
 		private Runnable afterStop = () -> {};