CPD Results
The following document contains the results of PMD's CPD 7.0.0.
Duplications
File |
Line |
org/apache/maven/api/services/VersionRangeResolverRequest.java |
56 |
org/apache/maven/api/services/VersionResolverRequest.java |
58 |
static VersionRangeResolverRequest build(
@Nonnull Session session,
@Nonnull ArtifactCoordinates artifactCoordinates,
@Nullable List<RemoteRepository> repositories) {
return builder()
.session(nonNull(session, "session cannot be null"))
.artifactCoordinates(nonNull(artifactCoordinates, "artifactCoordinates cannot be null"))
.repositories(repositories)
.build();
}
@Nonnull
static VersionResolverRequestBuilder builder() {
return new VersionResolverRequestBuilder();
}
@NotThreadSafe
class VersionResolverRequestBuilder {
Session session;
ArtifactCoordinates artifactCoordinates;
List<RemoteRepository> repositories;
public VersionResolverRequestBuilder session(Session session) {
this.session = session;
return this;
}
public VersionResolverRequestBuilder artifactCoordinates(ArtifactCoordinates artifactCoordinates) {
this.artifactCoordinates = artifactCoordinates;
return this;
}
public VersionResolverRequestBuilder repositories(List<RemoteRepository> repositories) {
this.repositories = repositories;
return this;
}
public VersionRangeResolverRequest build() { |
File |
Line |
org/apache/maven/api/services/ArtifactCoordinatesFactoryRequest.java |
123 |
org/apache/maven/api/services/ArtifactFactoryRequest.java |
97 |
ArtifactFactoryRequestBuilder() {}
public ArtifactFactoryRequestBuilder session(Session session) {
this.session = session;
return this;
}
public ArtifactFactoryRequestBuilder groupId(String groupId) {
this.groupId = groupId;
return this;
}
public ArtifactFactoryRequestBuilder artifactId(String artifactId) {
this.artifactId = artifactId;
return this;
}
public ArtifactFactoryRequestBuilder version(String version) {
this.version = version;
return this;
}
public ArtifactFactoryRequestBuilder classifier(String classifier) {
this.classifier = classifier;
return this;
}
public ArtifactFactoryRequestBuilder extension(String extension) {
this.extension = extension;
return this;
}
public ArtifactFactoryRequestBuilder type(String type) {
this.type = type;
return this;
}
public ArtifactFactoryRequestBuilder coordinateString(String coordinateString) { |