We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e382e commit 359b0f5Copy full SHA for 359b0f5
1 file changed
src/main/java/dev/isxander/yacl3/impl/InstantStateManager.java
@@ -3,6 +3,8 @@
3
import dev.isxander.yacl3.api.Binding;
4
import dev.isxander.yacl3.api.StateManager;
5
6
+import java.util.Objects;
7
+
8
public class InstantStateManager<T> implements StateManager<T>, ProvidesBindingForDeprecation<T> {
9
private final Binding<T> binding;
10
private StateListener<T> stateListener;
@@ -14,7 +16,7 @@ public InstantStateManager(Binding<T> binding) {
14
16
15
17
@Override
18
public void set(T value) {
- boolean changed = !this.get().equals(value);
19
+ boolean changed = !Objects.equals(this.get(), value);
20
21
this.binding.setValue(value);
22
0 commit comments