-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 8
-
Component/s: core-libs
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
The provided snippet for 3 argument reduce method in the stream api,
The below snippet comma is missing.
Comma should come before Integer::sum
int sumOfWeights = widgets.stream()
.reduce(0,
(sum, b) -> sum + b.getWeight())
Integer::sum);
The provided snippet for 3 argument reduce method in the stream api,
The below snippet comma is missing.
Comma should come before Integer::sum
int sumOfWeights = widgets.stream()
.reduce(0,
(sum, b) -> sum + b.getWeight())
Integer::sum);
- duplicates
-
JDK-8043328 Typo in documentation of package java.util.stream
-
- Closed
-