Skip to content

Commit

Permalink
Undo artifact change
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Jul 13, 2024
1 parent 0f1d743 commit d4e6f65
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.eclipse.aether.resolution.VersionRangeRequest;
import org.eclipse.aether.resolution.VersionRangeResult;
import org.eclipse.aether.util.ConfigUtils;
import org.eclipse.aether.util.artifact.ArtifactIdUtils;
import org.eclipse.aether.version.Version;
import org.eclipse.aether.version.VersionConstraint;

Expand Down Expand Up @@ -234,10 +233,10 @@ public void putChildren(Object key, List<DependencyNode> children) {
}

public static final class DescriptorKey {
private final String artifactKey;
private final Artifact artifact;

private DescriptorKey(Artifact artifact) {
this.artifactKey = ArtifactIdUtils.toId(artifact);
this.artifact = artifact;
}

@Override
Expand All @@ -249,17 +248,17 @@ public boolean equals(Object o) {
return false;
}
DescriptorKey that = (DescriptorKey) o;
return Objects.equals(artifactKey, that.artifactKey);
return Objects.equals(artifact, that.artifact);
}

@Override
public int hashCode() {
return Objects.hashCode(artifactKey);
return Objects.hashCode(artifact);
}

@Override
public String toString() {
return getClass().getSimpleName() + "{" + "artifactKey='" + artifactKey + '\'' + '}';
return getClass().getSimpleName() + "{" + "artifact='" + artifact + '\'' + '}';
}
}

Expand Down

0 comments on commit d4e6f65

Please sign in to comment.