Skip to content

Commit

Permalink
Remove redundant nullness annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Oct 14, 2024
1 parent abb43e2 commit 34b06da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public void complete(final LineReader reader, final ParsedLine line, final List<
}
}

private Candidate toCandidate(final Suggestion suggestion, final @NonNull ParseContext context) {
private Candidate toCandidate(final Suggestion suggestion, final ParseContext context) {
return this.toCandidate(
context.line.substring(context.suggestionStart, suggestion.getRange().getStart()) + suggestion.getText(),
suggestion.getTooltip()
);
}

private Candidate toCandidate(final @NonNull String suggestionText, final @NonNull Message descriptionMessage) {
private Candidate toCandidate(final String suggestionText, final Message descriptionMessage) {
final @Nullable String description = Optional.ofNullable(descriptionMessage)
.map(tooltip -> {
final Component tooltipComponent = ComponentUtils.fromMessage(tooltip);
Expand Down

0 comments on commit 34b06da

Please sign in to comment.