diff --git a/src/main/java/xyz/jpenilla/betterfabricconsole/console/MinecraftCommandCompleter.java b/src/main/java/xyz/jpenilla/betterfabricconsole/console/MinecraftCommandCompleter.java index 36ea32b..7a7992f 100644 --- a/src/main/java/xyz/jpenilla/betterfabricconsole/console/MinecraftCommandCompleter.java +++ b/src/main/java/xyz/jpenilla/betterfabricconsole/console/MinecraftCommandCompleter.java @@ -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);