Skip to content

Commit

Permalink
Merge pull request #500 from KingOfSquares/scoped-method-scope
Browse files Browse the repository at this point in the history
Fix return type on #decorate method in ScopedComponent
  • Loading branch information
kashike authored Nov 15, 2021
2 parents f24595d + 0025574 commit 1a1a04b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public interface ScopedComponent<C extends Component> extends Component {

@Override
@SuppressWarnings("unchecked")
default @NotNull Component decorate(final @NotNull TextDecoration decoration) {
default @NotNull C decorate(final @NotNull TextDecoration decoration) {
return (C) Component.super.decorate(decoration);
}

Expand Down

0 comments on commit 1a1a04b

Please sign in to comment.