Merge pull request #14497 from jasontedor/java-9-type-inference-concatenated-iterator

Fix Java 9 type inference issue
This commit is contained in:
Jason Tedor 2015-11-03 16:56:49 -05:00
commit 9d42b8b22b
1 changed files with 2 additions and 1 deletions

View File

@ -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> {