Skip to content

Commit 7a1e213

Browse files
committed
refactor: remove unnecessary nullness annotation from calculate method
1 parent 79f1d00 commit 7a1e213

File tree

1 file changed

+1
-2
lines changed
  • buildsystem-core/src/main/java/de/eintosti/buildsystem/expansion/luckperms/calculators

1 file changed

+1
-2
lines changed

buildsystem-core/src/main/java/de/eintosti/buildsystem/expansion/luckperms/calculators/RoleCalculator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import net.luckperms.api.context.ContextSet;
2828
import net.luckperms.api.context.ImmutableContextSet;
2929
import org.bukkit.entity.Player;
30-
import org.checkerframework.checker.nullness.qual.NonNull;
3130
import org.jspecify.annotations.NullMarked;
3231
import org.jspecify.annotations.Nullable;
3332

@@ -43,7 +42,7 @@ public RoleCalculator(BuildSystemPlugin plugin) {
4342
}
4443

4544
@Override
46-
public void calculate(@NonNull Player player, @NonNull ContextConsumer contextConsumer) {
45+
public void calculate(Player player, ContextConsumer contextConsumer) {
4746
BuildWorld buildWorld = worldStorage.getBuildWorld(player.getWorld());
4847
contextConsumer.accept(KEY, Role.matchRole(player, buildWorld).toString());
4948
}

0 commit comments

Comments
 (0)