Skip to content

Commit

Permalink
Update Path hashcode (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-roberts authored Jun 27, 2024
1 parent 29184cf commit e5247fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gov/nist/csd/pm/policy/model/audit/Path.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class Path {
private List<String> userDagPath;
Expand Down Expand Up @@ -48,7 +49,7 @@ public void setAssociation(Association association) {

@Override
public int hashCode() {
return this.toString().hashCode();
return Objects.hash(userDagPath, targetDagPath, association);
}

@Override
Expand Down

0 comments on commit e5247fa

Please sign in to comment.