Skip to content

Commit

Permalink
Fix ambiguous endsWith resolution in IterableAssert
Browse files Browse the repository at this point in the history
Fixed compilation error:
reference to endsWith is ambiguous, both method endsWith(ELEMENT#1,ELEMENT#1...) in AbstractIterableAssert and method endsWith(ELEMENT#2...) in IterableAssert
  • Loading branch information
joel-costigliola committed Oct 8, 2017
1 parent 157f0f6 commit 0d6eb5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/assertj/core/api/ListAssert.java
Expand Up @@ -108,8 +108,8 @@ public final ListAssert<ELEMENT> startsWith(ELEMENT... sequence) {

@Override
@SafeVarargs
public final ListAssert<ELEMENT> endsWith(ELEMENT... sequence) {
return super.endsWith(sequence);
public final ListAssert<ELEMENT> endsWith(ELEMENT first, ELEMENT... rest) {
return super.endsWith(first, rest);
}

}

0 comments on commit 0d6eb5c

Please sign in to comment.