From 6631e9144efffb83f68ec67e6ef101dcab5dc174 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 9 May 2020 17:32:52 +0100 Subject: [PATCH] Put Nullable annotations in the right place --- .../common/node/matcher/StandardNodeMatchers.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/node/matcher/StandardNodeMatchers.java b/common/src/main/java/me/lucko/luckperms/common/node/matcher/StandardNodeMatchers.java index 3a0a0d48e..9960268f9 100644 --- a/common/src/main/java/me/lucko/luckperms/common/node/matcher/StandardNodeMatchers.java +++ b/common/src/main/java/me/lucko/luckperms/common/node/matcher/StandardNodeMatchers.java @@ -80,9 +80,8 @@ public final class StandardNodeMatchers { super(constraint); } - @Nullable @Override - public Node filterConstraintMatch(@NonNull Node node) { + public @Nullable Node filterConstraintMatch(@NonNull Node node) { return node; } } @@ -112,9 +111,8 @@ public final class StandardNodeMatchers { super(Constraint.of(StandardComparison.SIMILAR, Meta.key(metaKey, StandardComparison.WILDCARD))); } - @Nullable @Override - public MetaNode filterConstraintMatch(@NonNull Node node) { + public @Nullable MetaNode filterConstraintMatch(@NonNull Node node) { return NodeType.META.tryCast(node).orElse(null); } } @@ -127,9 +125,8 @@ public final class StandardNodeMatchers { this.type = type; } - @Nullable @Override - public T filterConstraintMatch(@NonNull Node node) { + public @Nullable T filterConstraintMatch(@NonNull Node node) { return this.type.tryCast(node).orElse(null); }