Skip to content
Permalink
Browse files

[JENKINS-43507] Documenting SCMNavigatorRequest

  • Loading branch information...
stephenc committed May 3, 2017
1 parent b51ebd6 commit 556455a1fa29f34dea8a63eef38d6e4ae62f1473
@@ -43,12 +43,10 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import jenkins.scm.api.SCMNavigator;
import jenkins.scm.api.SCMNavigatorDescriptor;
@@ -61,7 +59,6 @@
import jenkins.scm.api.trait.SCMNavigatorRequest;
import jenkins.scm.api.trait.SCMNavigatorTrait;
import jenkins.scm.api.trait.SCMSourceTrait;
import jenkins.scm.api.trait.SCMSourceTraitDescriptor;
import jenkins.scm.api.trait.SCMTrait;
import jenkins.scm.api.trait.SCMTraitDescriptor;
import jenkins.scm.impl.UncategorizedSCMSourceCategory;
@@ -1000,15 +997,16 @@ public int getCount() {
}
}

private class SourceFactoryImpl implements SCMNavigatorRequest.SourceFactory {
private class SourceFactoryImpl implements SCMNavigatorRequest.SourceLambda {
private final GitHubSCMNavigatorRequest request;

public SourceFactoryImpl(GitHubSCMNavigatorRequest request) {
this.request = request;
}

@NonNull
@Override
public SCMSource create(String name) {
public SCMSource create(@NonNull String name) {
return new GitHubSCMSourceBuilder(getId() + "::" + name, apiUri, scanCredentialsId, repoOwner, name)
.withRequest(request)
.build();

0 comments on commit 556455a

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