Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-41795] Origin is non-null here
  • Loading branch information
stephenc committed Feb 7, 2017
1 parent 1688dab commit 6d4dfe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/jenkins/branch/BranchEventCause.java
Expand Up @@ -26,6 +26,7 @@
package jenkins.branch;

import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.model.Cause;
import hudson.model.ItemGroup;
import hudson.model.Run;
Expand All @@ -42,6 +43,7 @@ public final class BranchEventCause extends Cause {
private transient MultiBranchProject<?, ?> multiBranchProject;

private final long timestamp;
@NonNull
private final String origin;

BranchEventCause(SCMEvent<?> event) {
Expand All @@ -64,6 +66,7 @@ public Date getTimestamp() {
return new Date(timestamp);
}

@NonNull
public String getOrigin() {
return origin;
}
Expand Down

0 comments on commit 6d4dfe9

Please sign in to comment.