Skip to content

Commit

Permalink
[JENKINS-52450] annotate onLoad build param as Nonnull (#3543)
Browse files Browse the repository at this point in the history
* annotate onLoad build param as NonNull

* replace the annotation with the java one
  • Loading branch information
kuisathaverat authored and oleg-nenashev committed Jul 14, 2018
1 parent af6dc33 commit b02071a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/model/ArtifactManager.java
Expand Up @@ -33,6 +33,7 @@
import hudson.tasks.ArtifactArchiver;
import java.io.IOException;
import java.util.Map;
import javax.annotation.Nonnull;
import jenkins.util.VirtualFile;

/**
Expand All @@ -47,7 +48,7 @@ public abstract class ArtifactManager {
* The selected manager will be persisted inside a build, so the build reference should be {@code transient} (quasi-{@code final}) and restored here.
* @param build a historical build with which this manager was associated
*/
public abstract void onLoad(Run<?,?> build);
public abstract void onLoad(@Nonnull Run<?,?> build);

/**
* Archive all configured artifacts from a build.
Expand Down

0 comments on commit b02071a

Please sign in to comment.