From 2448963161b482e3bc64ffe66c0e96f3e87d7cca Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Wed, 31 Aug 2022 10:57:41 +0200 Subject: [PATCH] class does not need to be generic --- src/main/java/org/cryptomator/ui/common/AutoAnimator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = () -> {};