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
|
@ -91,6 +91,7 @@ public interface PrimitiveIterator<T, T_CONS> extends Iterator<T> {
|
|||
* An Iterator specialized for {@code int} values.
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("overloads")
|
||||
public static interface OfInt extends PrimitiveIterator<Integer, IntConsumer> {
|
||||
|
||||
/**
|
||||
|
@ -158,6 +159,7 @@ public interface PrimitiveIterator<T, T_CONS> extends Iterator<T> {
|
|||
* An Iterator specialized for {@code long} values.
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("overloads")
|
||||
public static interface OfLong extends PrimitiveIterator<Long, LongConsumer> {
|
||||
|
||||
/**
|
||||
|
@ -224,6 +226,7 @@ public interface PrimitiveIterator<T, T_CONS> extends Iterator<T> {
|
|||
* An Iterator specialized for {@code double} values.
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("overloads")
|
||||
public static interface OfDouble extends PrimitiveIterator<Double, DoubleConsumer> {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue