Merge pull request #14497 from jasontedor/java-9-type-inference-concatenated-iterator
Fix Java 9 type inference issue
This commit is contained in:
commit
9d42b8b22b
|
@ -28,7 +28,8 @@ public class Iterators {
|
|||
throw new NullPointerException("iterators");
|
||||
}
|
||||
|
||||
return new ConcatenatedIterator<>(iterators);
|
||||
// explicit generic type argument needed for type inference
|
||||
return new ConcatenatedIterator<T>(iterators);
|
||||
}
|
||||
|
||||
static class ConcatenatedIterator<T> implements Iterator<T> {
|
||||
|
|
Loading…
Reference in New Issue