Skip to content

Commit

Permalink
Merge pull request #67 from basil/jsr305
Browse files Browse the repository at this point in the history
EOL JSR 305
  • Loading branch information
jglick authored Jan 3, 2022
2 parents ac25576 + b9998f0 commit d7de486
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

import javax.annotation.Nonnull;
import edu.umd.cs.findbugs.annotations.NonNull;

/**
* @author Valentina Armenise
Expand All @@ -44,7 +44,7 @@ public ApproverAction(String userId) {
this.userId = userId;
}

@Nonnull
@NonNull
final private String userId;

@Exported
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.concurrent.TimeoutException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nonnull;
import edu.umd.cs.findbugs.annotations.NonNull;
import org.jenkinsci.plugins.workflow.flow.FlowExecution;
import org.jenkinsci.plugins.workflow.flow.FlowExecutionList;
import org.jenkinsci.plugins.workflow.steps.StepExecution;
Expand Down Expand Up @@ -120,7 +120,7 @@ public String getUrlName() {
return "input";
}

public synchronized void add(@Nonnull InputStepExecution step) throws IOException, InterruptedException, TimeoutException {
public synchronized void add(@NonNull InputStepExecution step) throws IOException, InterruptedException, TimeoutException {
loadExecutions();
if (executions == null) {
throw new IOException("cannot load state");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.interceptor.RequirePOST;

import javax.annotation.CheckForNull;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import javax.servlet.ServletException;
import java.io.IOException;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import org.jenkinsci.plugins.workflow.actions.PersistentAction;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import java.util.LinkedHashMap;
import java.util.Map;

Expand All @@ -50,7 +50,7 @@ public InputSubmittedAction(String approver, @CheckForNull Map<String,Object> pa
}
}

@Nonnull
@NonNull
public Map<String,Object> getParameters() {
return parameters;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.jenkinsci.plugins.workflow.support.steps.input;

import hudson.model.User;
import javax.annotation.CheckForNull;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import jenkins.model.CauseOfInterruption;
import org.kohsuke.stapler.export.Exported;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

import org.jvnet.hudson.test.MockAuthorizationStrategy;

import javax.annotation.Nullable;
import edu.umd.cs.findbugs.annotations.Nullable;

/**
* @author Kohsuke Kawaguchi
Expand Down

0 comments on commit d7de486

Please sign in to comment.