Skip to content

Commit 5636f00

Browse files
changes from EnergyPriceValue
1 parent 4f8e1b4 commit 5636f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/ie3/datamodel/models/value/EnergyPriceValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public boolean equals(Object o) {
3333
if (o == null || getClass() != o.getClass()) return false;
3434
EnergyPriceValue that = (EnergyPriceValue) o;
3535

36-
return price.getValue().doubleValue() == that.price.getValue().doubleValue()
37-
&& price.getUnit().equals(that.price.getUnit());
36+
return Objects.equals(price.getValue().doubleValue(), that.price.getValue().doubleValue())
37+
&& Objects.equals(price.getUnit(), that.price.getUnit());
3838
}
3939

4040
@Override

0 commit comments

Comments
 (0)