BAEL-6874 update test code for article (#15164)

* BAEL-6819 convert from int to Long in Java

* BAEL-6819 update package name

* BAEL-6874 test code for article

* BAEL-6874 rename test class

* BAEL-6874 update test code for article

* BAEL-6874 update test code for article
This commit is contained in:
Bogdan Cardoş 2023-11-10 00:01:10 +02:00 committed by GitHub
parent 0b0db24ebb
commit 63679af8ca
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class GenericNumbersComparatorUnitTest {
assertEquals(true, isEqual.test(5, 5.0));
}
private boolean someCondition = true;
private boolean someCondition;
Function<Number, ?> dynamicFunction = someCondition ? Number::doubleValue : Number::intValue;
Comparator<Number> dynamicComparator = (num1, num2) -> ((Comparable) dynamicFunction.apply(num1)).compareTo(dynamicFunction.apply(num2));