Skip to content

Commit 447e13d

Browse files
Merge pull request #818 from ie3-institute/to/#817-non-unique-result-hash
Fix wrong hashcode for ConnectorResult
2 parents f7e85df + 186d58d commit 447e13d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515
- Fixed wrong rated power unit hint [#804](https://github.com/ie3-institute/PowerSystemDataModel/issues/804)
16+
- Fixed wrong hash code generation of ConnectorResult [#817](https://github.com/ie3-institute/PowerSystemDataModel/issues/817)
1617

1718

1819
### Changed

src/main/java/edu/ie3/datamodel/models/result/connector/ConnectorResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public boolean equals(Object o) {
124124

125125
@Override
126126
public int hashCode() {
127-
return Objects.hash(iAMag, iAAng, iBMag, iBAng);
127+
return Objects.hash(super.hashCode(), iAMag, iAAng, iBMag, iBAng);
128128
}
129129

130130
@Override

0 commit comments

Comments
 (0)