From e5247fa919368d0f50652a2edb3655b4044524c7 Mon Sep 17 00:00:00 2001 From: joshua-roberts Date: Thu, 27 Jun 2024 13:14:40 -0400 Subject: [PATCH] Update Path hashcode (#151) --- src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java b/src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java index b3f061f5f..23055a16a 100644 --- a/src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java +++ b/src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.Objects; public class Path { private List userDagPath; @@ -48,7 +49,7 @@ public void setAssociation(Association association) { @Override public int hashCode() { - return this.toString().hashCode(); + return Objects.hash(userDagPath, targetDagPath, association); } @Override