Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Commit e2d27d1

Browse files
committed
Fixed equals.
1 parent 5ca27d6 commit e2d27d1

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
@@ -262,10 +262,9 @@ public boolean equals(Object obj) {
262262
}
263263
if (obj instanceof DefaultExchangeRate) {
264264
DefaultExchangeRate other = (DefaultExchangeRate) obj;
265-
return Objects.equals(baseCurrency, other.baseCurrency) && Objects.equals(conversionContext,
266-
other.conversionContext)
267-
&& Objects.equals(chain, other.chain)
268-
&& Objects.equals(factor, other.factor) && Objects.equals(termCurrency, other.termCurrency);
265+
return Objects.equals(baseCurrency, other.baseCurrency) &&
266+
Objects.equals(conversionContext, other.conversionContext) &&
267+
Objects.equals(factor, other.factor) && Objects.equals(termCurrency, other.termCurrency);
269268
}
270269
return false;
271270
}

0 commit comments

Comments
 (0)