mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8026369: javac potentially ambiguous overload warning needs an improved scheme
Reviewed-by: vromero
This commit is contained in:
parent
14a014d430
commit
1e3c9fd67e
16 changed files with 364 additions and 82 deletions
|
@ -908,18 +908,21 @@ public final class Spliterators {
|
|||
OfRef() { }
|
||||
}
|
||||
|
||||
@SuppressWarnings("overloads")
|
||||
private static final class OfInt
|
||||
extends EmptySpliterator<Integer, Spliterator.OfInt, IntConsumer>
|
||||
implements Spliterator.OfInt {
|
||||
OfInt() { }
|
||||
}
|
||||
|
||||
@SuppressWarnings("overloads")
|
||||
private static final class OfLong
|
||||
extends EmptySpliterator<Long, Spliterator.OfLong, LongConsumer>
|
||||
implements Spliterator.OfLong {
|
||||
OfLong() { }
|
||||
}
|
||||
|
||||
@SuppressWarnings("overloads")
|
||||
private static final class OfDouble
|
||||
extends EmptySpliterator<Double, Spliterator.OfDouble, DoubleConsumer>
|
||||
implements Spliterator.OfDouble {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue