Skip to content

Commit 3ad4d75

Browse files
Also calling equals method of super class
1 parent 866fb7f commit 3ad4d75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/edu/ie3/datamodel/models/voltagelevels/CommonVoltageLevel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public boolean covers(String id, ComparableQuantity<ElectricPotential> vRated)
8080
public boolean equals(Object o) {
8181
if (this == o) return true;
8282
if (o == null || getClass() != o.getClass()) return false;
83+
if (!super.equals(o)) return false;
8384

8485
CommonVoltageLevel that = (CommonVoltageLevel) o;
8586
return this.voltageRange.equals(that.voltageRange);

0 commit comments

Comments
 (0)