diff --git a/api/src/main/java/net/kyori/adventure/pointer/PointersSupplierImpl.java b/api/src/main/java/net/kyori/adventure/pointer/PointersSupplierImpl.java index d0f5fff62..7f9026a31 100644 --- a/api/src/main/java/net/kyori/adventure/pointer/PointersSupplierImpl.java +++ b/api/src/main/java/net/kyori/adventure/pointer/PointersSupplierImpl.java @@ -47,7 +47,7 @@ final class PointersSupplierImpl implements PointersSupplier { } @Override - public

boolean supports(@NotNull Pointer

pointer) { + public

boolean supports(final @NotNull Pointer

pointer) { if (this.resolvers.containsKey(Objects.requireNonNull(pointer, "pointer"))) { return true; } else if (this.parent == null) { @@ -59,8 +59,8 @@ public

boolean supports(@NotNull Pointer

pointer) { @Override @SuppressWarnings("unchecked") // all values are checked on entry - public @Nullable

Function resolver(@NotNull Pointer

pointer) { - Function resolver = this.resolvers.get(Objects.requireNonNull(pointer, "pointer")); + public @Nullable

Function resolver(final @NotNull Pointer

pointer) { + final Function resolver = this.resolvers.get(Objects.requireNonNull(pointer, "pointer")); if (resolver != null) { return (Function) resolver; @@ -104,8 +104,8 @@ public boolean supports(final @NotNull Pointer pointer) { } @Override - @SuppressWarnings("unchecked") // all values are checked on entry - public @NotNull Pointers.Builder toBuilder() { + @SuppressWarnings({"unchecked", "rawtypes"}) // all values are checked on entry + public Pointers.@NotNull Builder toBuilder() { final Pointers.Builder builder = this.supplier.parent == null ? Pointers.builder() : this.supplier.parent.view(this.instance).toBuilder(); for (final Map.Entry, Function> entry : this.supplier.resolvers.entrySet()) {