mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-29 11:41:45 +01:00
Put Nullable annotations in the right place
This commit is contained in:
parent
7ae532f082
commit
6631e9144e
@ -80,9 +80,8 @@ public final class StandardNodeMatchers {
|
|||||||
super(constraint);
|
super(constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
@Override
|
||||||
public Node filterConstraintMatch(@NonNull Node node) {
|
public @Nullable Node filterConstraintMatch(@NonNull Node node) {
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -112,9 +111,8 @@ public final class StandardNodeMatchers {
|
|||||||
super(Constraint.of(StandardComparison.SIMILAR, Meta.key(metaKey, StandardComparison.WILDCARD)));
|
super(Constraint.of(StandardComparison.SIMILAR, Meta.key(metaKey, StandardComparison.WILDCARD)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
@Override
|
||||||
public MetaNode filterConstraintMatch(@NonNull Node node) {
|
public @Nullable MetaNode filterConstraintMatch(@NonNull Node node) {
|
||||||
return NodeType.META.tryCast(node).orElse(null);
|
return NodeType.META.tryCast(node).orElse(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -127,9 +125,8 @@ public final class StandardNodeMatchers {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
@Override
|
||||||
public T filterConstraintMatch(@NonNull Node node) {
|
public @Nullable T filterConstraintMatch(@NonNull Node node) {
|
||||||
return this.type.tryCast(node).orElse(null);
|
return this.type.tryCast(node).orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user