Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: zml <[email protected]>
  • Loading branch information
rymiel and zml2008 authored Apr 11, 2023
1 parent e235040 commit 268ecd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface ANSIComponentSerializer extends ComponentSerializer<Component,
/**
* Gets a component serializer for serialization to a string using ANSI escape codes.
*
* <p>Note that this serializer does NOT support serialization.</p>
* <p>Note that this serializer does NOT support deserialization.</p>
*
* @return a component serializer for serialization with ANSI escape sequences.
* @since 4.14.0
Expand Down Expand Up @@ -83,7 +83,7 @@ interface Builder extends AbstractBuilder<ANSIComponentSerializer> {
* @see ColorLevel
* @since 4.14.0
*/
@NotNull Builder colorLevel(final ColorLevel colorLevel);
@NotNull Builder colorLevel(final @NotNull ColorLevel colorLevel);

/**
* Sets the component flattener instance to use when traversing the component for serialization.
Expand All @@ -94,7 +94,7 @@ interface Builder extends AbstractBuilder<ANSIComponentSerializer> {
* @return this builder
* @since 4.14.0
*/
@NotNull Builder flattener(final ComponentFlattener componentFlattener);
@NotNull Builder flattener(final @NotNull ComponentFlattener componentFlattener);

/**
* Builds the serializer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ static final class BuilderImpl implements ANSIComponentSerializer.Builder {
}

@Override
public @NotNull Builder colorLevel(final ColorLevel colorLevel) {
public @NotNull Builder colorLevel(final @NotNull ColorLevel colorLevel) {
this.colorLevel = colorLevel;
return this;
}

@Override
public @NotNull Builder flattener(final ComponentFlattener componentFlattener) {
public @NotNull Builder flattener(final @NotNull ComponentFlattener componentFlattener) {
this.flattener = componentFlattener;
return this;
}
Expand Down

0 comments on commit 268ecd3

Please sign in to comment.