8026369: javac potentially ambiguous overload warning needs an improved scheme

Reviewed-by: vromero
This commit is contained in:
Archie L. Cobbs 2023-02-28 03:33:14 +00:00 committed by Vicente Romero
parent 14a014d430
commit 1e3c9fd67e
16 changed files with 364 additions and 82 deletions

View file

@ -63,6 +63,7 @@ import java.util.stream.Collector;
* <p>This implementation does not check for overflow of the count or the sum.
* @since 1.8
*/
@SuppressWarnings("overloads")
public class LongSummaryStatistics implements LongConsumer, IntConsumer {
private long count;
private long sum;