Is your feature request related to a problem?
Currently the only implementation of ComponentMessageThrowable (CommandSyntaxException) in the paper api can't return null because it uses PaperBrigadier which is marked as NonNull.
Describe the solution you'd like.
The name of the issue describes it pretty well. Mark ComponentMessageThrowable#componentMessage as NonNull (and CommandSyntaxException's implementation as well).
Describe alternatives you've considered.
The alternative is @SuppressWarnings("DataFlowIssue").
Other
I also noticed that PaperBrigadier is marked as deprecated for removal, so maybe its usage could also be removed with this change?
Is your feature request related to a problem?
Currently the only implementation of ComponentMessageThrowable (CommandSyntaxException) in the paper api can't return null because it uses PaperBrigadier which is marked as NonNull.
Describe the solution you'd like.
The name of the issue describes it pretty well. Mark ComponentMessageThrowable#componentMessage as NonNull (and CommandSyntaxException's implementation as well).
Describe alternatives you've considered.
The alternative is
@SuppressWarnings("DataFlowIssue").Other
I also noticed that PaperBrigadier is marked as deprecated for removal, so maybe its usage could also be removed with this change?