Skip to content

Mark ComponentMessageThrowable#componentMessage as NonNull #14232

Description

@TurboJax

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions