From 8db00047800a5a3653dc9bd376ad361276964b57 Mon Sep 17 00:00:00 2001 From: massimeddu-sj <118254552+massimeddu-sj@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:26:28 +0200 Subject: [PATCH] fix: fine-tune alphabetical order in lockfile (#910) --- .../chains_project/maven_lockfile/graph/DependencyNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven_plugin/src/main/java/io/github/chains_project/maven_lockfile/graph/DependencyNode.java b/maven_plugin/src/main/java/io/github/chains_project/maven_lockfile/graph/DependencyNode.java index a1fd144e..9f390f2c 100644 --- a/maven_plugin/src/main/java/io/github/chains_project/maven_lockfile/graph/DependencyNode.java +++ b/maven_plugin/src/main/java/io/github/chains_project/maven_lockfile/graph/DependencyNode.java @@ -233,7 +233,7 @@ public String toString() { } public String getComparatorString() { - return this.getGroupId().getValue() + ":" + this.getArtifactId().getValue() + "@" - + this.getVersion().getValue() + "-" + this.getChecksum(); + return this.getGroupId().getValue() + "#" + this.getArtifactId().getValue() + "#" + + this.getVersion().getValue() + "#" + this.getChecksum(); } }