Skip to content

Commit

Permalink
resolve style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Apr 24, 2024
1 parent 9cfffd4 commit 3abb97e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class PointersSupplierImpl<T> implements PointersSupplier<T> {
}

@Override
public <P> boolean supports(@NotNull Pointer<P> pointer) {
public <P> boolean supports(final @NotNull Pointer<P> pointer) {
if (this.resolvers.containsKey(Objects.requireNonNull(pointer, "pointer"))) {
return true;
} else if (this.parent == null) {
Expand All @@ -59,8 +59,8 @@ public <P> boolean supports(@NotNull Pointer<P> pointer) {

@Override
@SuppressWarnings("unchecked") // all values are checked on entry
public @Nullable <P> Function<? super T, P> resolver(@NotNull Pointer<P> pointer) {
Function<? super T, ?> resolver = this.resolvers.get(Objects.requireNonNull(pointer, "pointer"));
public @Nullable <P> Function<? super T, P> resolver(final @NotNull Pointer<P> pointer) {
final Function<? super T, ?> resolver = this.resolvers.get(Objects.requireNonNull(pointer, "pointer"));

if (resolver != null) {
return (Function<? super T, P>) resolver;
Expand Down Expand Up @@ -104,8 +104,8 @@ public <T> boolean supports(final @NotNull Pointer<T> 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<Pointer<?>, Function<U, ?>> entry : this.supplier.resolvers.entrySet()) {
Expand Down

0 comments on commit 3abb97e

Please sign in to comment.