maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baptiste Mathus (JIRA)" <>
Subject [jira] (MENFORCER-227) Document nullability with @Nonnull on EnforcerRule API
Date Mon, 02 Mar 2015 19:21:17 GMT


Baptiste Mathus commented on MENFORCER-227:

FWIW I tested the 1.5-SNAPSHOT locally with some internal rules, and it works fine (no problem
with the new jsr305 dependency).

> Document nullability with @Nonnull on EnforcerRule API
> ------------------------------------------------------
>                 Key: MENFORCER-227
>                 URL:
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>          Components: Rule API
>            Reporter: Baptiste Mathus
>             Fix For: 1.4.1
>         Attachments: patch-nonnull-enforcer-api.patch
> 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

This message was sent by Atlassian JIRA

View raw message