Skip to content

Commit

Permalink
api: fix incorrect Contract annotation values
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed May 13, 2021
1 parent 9918f4e commit 8d8a765
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public interface ComponentBuilder<C extends BuildableComponent<C, B>, B extends
* @return this builder
* @since 4.0.0
*/
@Contract("_ -> this")
@Contract("_, _ -> this")
@SuppressWarnings("unchecked")
default @NonNull B decorations(final @NonNull Set<TextDecoration> decorations, final boolean flag) {
final TextDecoration.State state = TextDecoration.State.byBoolean(flag);
Expand Down Expand Up @@ -359,7 +359,6 @@ public interface ComponentBuilder<C extends BuildableComponent<C, B>, B extends
* @return this builder
* @since 4.0.0
*/
@Contract("-> this")
@NonNull B resetStyle();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ default Builder matchLiteral(final String literal) {
* @return this builder
* @since 4.2.0
*/
@Contract("-> this")
default @NonNull Builder once() {
return this.times(1);
}
Expand Down

0 comments on commit 8d8a765

Please sign in to comment.