Navigation Menu

Skip to content

Commit

Permalink
FindBugs annotations to catch the likes of JENKINS-19852.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Apr 10, 2014
1 parent 86c82c8 commit 9bf265e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -25,6 +25,8 @@

import hudson.model.Descriptor.FormException;
import hudson.slaves.NodeProperty;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;

Expand Down Expand Up @@ -77,5 +79,5 @@ public interface ReconfigurableDescribable<T extends ReconfigurableDescribable<T
* @return
* The new instance. To not to create an instance of a describable, return null.
*/
T reconfigure(StaplerRequest req, JSONObject form) throws FormException;
@CheckForNull T reconfigure(@Nonnull StaplerRequest req, @CheckForNull JSONObject form) throws FormException;
}

0 comments on commit 9bf265e

Please sign in to comment.