We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f8e1b4 commit 5636f00Copy full SHA for 5636f00
src/main/java/edu/ie3/datamodel/models/value/EnergyPriceValue.java
@@ -33,8 +33,8 @@ public boolean equals(Object o) {
33
if (o == null || getClass() != o.getClass()) return false;
34
EnergyPriceValue that = (EnergyPriceValue) o;
35
36
- return price.getValue().doubleValue() == that.price.getValue().doubleValue()
37
- && price.getUnit().equals(that.price.getUnit());
+ return Objects.equals(price.getValue().doubleValue(), that.price.getValue().doubleValue())
+ && Objects.equals(price.getUnit(), that.price.getUnit());
38
}
39
40
@Override
0 commit comments