Skip to content

Commit c763ae6

Browse files
committed
Fixed equals.
1 parent a37f49f commit c763ae6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/javax/money/convert/DefaultExchangeRate.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,9 @@ public boolean equals(Object obj) {
261261
}
262262
if (obj instanceof DefaultExchangeRate) {
263263
DefaultExchangeRate other = (DefaultExchangeRate) obj;
264-
return Objects.equals(baseCurrency, other.baseCurrency) && Objects.equals(conversionContext,
265-
other.conversionContext)
266-
&& Objects.equals(chain, other.chain)
267-
&& Objects.equals(factor, other.factor) && Objects.equals(termCurrency, other.termCurrency);
264+
return Objects.equals(baseCurrency, other.baseCurrency) &&
265+
Objects.equals(conversionContext, other.conversionContext) &&
266+
Objects.equals(factor, other.factor) && Objects.equals(termCurrency, other.termCurrency);
268267
}
269268
return false;
270269
}

0 commit comments

Comments
 (0)