|
8 | 8 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
9 | 9 | * specific language governing permissions and limitations under the License. |
10 | 10 | * |
11 | | - * Copyright 2017-2022 the original author or authors. |
| 11 | + * Copyright 2017-2023 the original author or authors. |
12 | 12 | */ |
13 | 13 | package org.assertj.vavr.api; |
14 | 14 |
|
|
19 | 19 | import org.assertj.core.data.Index; |
20 | 20 | import org.assertj.core.internal.ComparatorBasedComparisonStrategy; |
21 | 21 | import org.assertj.core.internal.ComparisonStrategy; |
22 | | -import org.assertj.core.internal.Iterables; |
23 | 22 | import org.assertj.core.internal.StandardComparisonStrategy; |
24 | 23 | import org.assertj.core.util.CheckReturnValue; |
25 | 24 |
|
26 | 25 | import java.util.Comparator; |
27 | 26 | import java.util.function.Consumer; |
28 | 27 |
|
29 | 28 | import static java.lang.String.format; |
30 | | -import static java.util.Objects.requireNonNull; |
31 | 29 | import static org.assertj.core.error.ShouldBeSorted.shouldHaveComparableElementsAccordingToGivenComparator; |
32 | 30 | import static org.assertj.core.error.ShouldContainAtIndex.shouldContainAtIndex; |
33 | 31 | import static org.assertj.core.error.ShouldNotBeEmpty.shouldNotBeEmpty; |
@@ -68,7 +66,6 @@ abstract class AbstractSeqAssert<SELF extends AbstractSeqAssert<SELF, ACTUAL, EL |
68 | 66 | */ |
69 | 67 | @CheckReturnValue |
70 | 68 | public SELF usingElementComparator(Comparator<? super ELEMENT> customComparator) { |
71 | | - this.iterables = new Iterables(new ComparatorBasedComparisonStrategy(customComparator)); |
72 | 69 | seqElementComparisonStrategy = new ComparatorBasedComparisonStrategy(customComparator); |
73 | 70 | return myself; |
74 | 71 | } |
@@ -328,7 +325,7 @@ private void assertIsSortedAccordingToComparator(Comparator<?> comparator) { |
328 | 325 |
|
329 | 326 | private void assertConditionIsMetAtIndex(Condition<? super ELEMENT> condition, Index index, Runnable errorProvider) { |
330 | 327 | isNotNull(); |
331 | | - requireNonNull(condition, "The condition to evaluate should not be null"); |
| 328 | + checkNotNull(condition, "The condition to evaluate should not be null"); |
332 | 329 |
|
333 | 330 | assertNotEmpty(); |
334 | 331 | assertIndexIsValid(index); |
|
0 commit comments