Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-227

Document nullability with @Nonnull on EnforcerRule API

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1
    • Component/s: Rule API
    • Labels:
      None
    • Flags:
      Patch

      Description

      More and more often IDE are configured to use the "JSR305" annotations @Nonnull, @Nullable.

      This would be great to add @Nonnull to the EnforcerRule methods so that implemented rules are not reported as "potential null pointer exception" when one does not check if the helper is null, and so on.

      Thanks a lot for the feedback

        Attachments

          Activity

            People

            • Assignee:
              khmarbaise Karl Heinz Marbaise
              Reporter:
              mathus.b@mipih.fr Baptiste MATHUS
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: