diff --git a/src/main/java/org/cryptomator/ui/common/AutoAnimator.java b/src/main/java/org/cryptomator/ui/common/AutoAnimator.java index b5398339c..9b53dc318 100644 --- a/src/main/java/org/cryptomator/ui/common/AutoAnimator.java +++ b/src/main/java/org/cryptomator/ui/common/AutoAnimator.java @@ -12,15 +12,15 @@ import javafx.beans.value.ObservableValue; *

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