Skip to content
Permalink
Browse files

[JENKINS-43507] Documenting SCMNavigatorTrait and SCMNavigatorTraitDe…

…scriptor
  • Loading branch information...
stephenc committed May 4, 2017
1 parent 556455a commit d5db67e060293ddd351d22df07185cd009d547af
@@ -111,7 +111,7 @@ public String getDisplayName() {
}

@Override
public boolean isApplicableToContext(Class<? extends SCMSourceContext> contextClass) {
public boolean isApplicableToContext(@NonNull Class<? extends SCMSourceContext> contextClass) {
return GitHubSCMSourceRequest.class.isAssignableFrom(contextClass);
}

@@ -86,7 +86,7 @@ public String getDisplayName() {
}

@Override
public boolean isApplicableToContext(Class<? extends SCMSourceContext> contextClass) {
public boolean isApplicableToContext(@NonNull Class<? extends SCMSourceContext> contextClass) {
return GitHubSCMSourceRequest.class.isAssignableFrom(contextClass);
}

@@ -75,7 +75,7 @@ public String getDisplayName() {
}

@Override
public boolean isApplicableToContext(Class<? extends SCMSourceContext> contextClass) {
public boolean isApplicableToContext(@NonNull Class<? extends SCMSourceContext> contextClass) {
return GitHubSCMSourceRequest.class.isAssignableFrom(contextClass);
}

@@ -5,6 +5,7 @@
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
import com.cloudbees.plugins.credentials.common.StandardUsernameCredentials;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.Extension;
import hudson.model.Item;
import hudson.model.Queue;
@@ -53,12 +54,12 @@ public String getDisplayName() {
}

@Override
public boolean isApplicableToContext(Class<? extends SCMSourceContext> contextClass) {
public boolean isApplicableToContext(@NonNull Class<? extends SCMSourceContext> contextClass) {
return GitHubSCMSourceRequest.class.isAssignableFrom(contextClass);
}

@Override
public boolean isApplicableToSCM(SCMDescriptor<?> scm) {
public boolean isApplicableToSCM(@NonNull SCMDescriptor<?> scm) {
return scm instanceof GitSCM.DescriptorImpl;
}

0 comments on commit d5db67e

Please sign in to comment.
You can’t perform that action at this time.