Skip to content

Commit 63f907f

Browse files
authored
Fixes #162 (#163)
1 parent 97a6e70 commit 63f907f

File tree

196 files changed

+632
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+632
-302
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @pivovarit @mchmielarz
1+
* @mchmielarz

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
java: [ '8', '11', '15', '16', '17' ]
15+
java: [ '11', '17', '19', '20' ]
1616
architecture: [ 'x64' ]
1717
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
1818
steps:

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,17 @@
161161
</executions>
162162
</plugin>
163163

164+
<plugin>
165+
<groupId>com.mycila</groupId>
166+
<artifactId>license-maven-plugin</artifactId>
167+
<configuration>
168+
<properties>
169+
<!-- Values to be substituted in template -->
170+
<currentYear>2023</currentYear>
171+
</properties>
172+
</configuration>
173+
</plugin>
174+
164175
<plugin>
165176
<groupId>org.apache.maven.plugins</groupId>
166177
<artifactId>maven-surefire-plugin</artifactId>

src/main/java/org/assertj/vavr/api/AbstractEitherAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

src/main/java/org/assertj/vavr/api/AbstractLazyAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

src/main/java/org/assertj/vavr/api/AbstractMapAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

src/main/java/org/assertj/vavr/api/AbstractMultimapAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

src/main/java/org/assertj/vavr/api/AbstractOptionAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

src/main/java/org/assertj/vavr/api/AbstractSeqAssert.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

@@ -19,15 +19,13 @@
1919
import org.assertj.core.data.Index;
2020
import org.assertj.core.internal.ComparatorBasedComparisonStrategy;
2121
import org.assertj.core.internal.ComparisonStrategy;
22-
import org.assertj.core.internal.Iterables;
2322
import org.assertj.core.internal.StandardComparisonStrategy;
2423
import org.assertj.core.util.CheckReturnValue;
2524

2625
import java.util.Comparator;
2726
import java.util.function.Consumer;
2827

2928
import static java.lang.String.format;
30-
import static java.util.Objects.requireNonNull;
3129
import static org.assertj.core.error.ShouldBeSorted.shouldHaveComparableElementsAccordingToGivenComparator;
3230
import static org.assertj.core.error.ShouldContainAtIndex.shouldContainAtIndex;
3331
import static org.assertj.core.error.ShouldNotBeEmpty.shouldNotBeEmpty;
@@ -68,7 +66,6 @@ abstract class AbstractSeqAssert<SELF extends AbstractSeqAssert<SELF, ACTUAL, EL
6866
*/
6967
@CheckReturnValue
7068
public SELF usingElementComparator(Comparator<? super ELEMENT> customComparator) {
71-
this.iterables = new Iterables(new ComparatorBasedComparisonStrategy(customComparator));
7269
seqElementComparisonStrategy = new ComparatorBasedComparisonStrategy(customComparator);
7370
return myself;
7471
}
@@ -328,7 +325,7 @@ private void assertIsSortedAccordingToComparator(Comparator<?> comparator) {
328325

329326
private void assertConditionIsMetAtIndex(Condition<? super ELEMENT> condition, Index index, Runnable errorProvider) {
330327
isNotNull();
331-
requireNonNull(condition, "The condition to evaluate should not be null");
328+
checkNotNull(condition, "The condition to evaluate should not be null");
332329

333330
assertNotEmpty();
334331
assertIndexIsValid(index);

src/main/java/org/assertj/vavr/api/AbstractSetAssert.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
99
* specific language governing permissions and limitations under the License.
1010
*
11-
* Copyright 2017-2022 the original author or authors.
11+
* Copyright 2017-2023 the original author or authors.
1212
*/
1313
package org.assertj.vavr.api;
1414

1515
import io.vavr.collection.Set;
1616
import org.assertj.core.api.AbstractAssert;
1717
import org.assertj.core.api.EnumerableAssert;
1818

19-
import java.util.Comparator;
20-
2119
abstract class AbstractSetAssert<SELF extends AbstractSetAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>,
2220
ACTUAL extends Set<? extends ELEMENT>,
2321
ELEMENT,

0 commit comments

Comments
 (0)