-
Bug
-
Resolution: Done
-
Minor
-
9.4.2.Final, 10.0.0.Final
-
None
-
None
In the Word Count Example ( http://infinispan.org/docs/stable/user_guide/user_guide.html#examples_2 ) we have
public class WordCountExample { public static void main(String[] args) { // Lines removed Map<String, Integer> wordCountMap = c1.entrySet().parallelStream() .map(e -> e.getValue().split("\\s")) .flatMap(Arrays::stream) .collect(() -> Collectors.groupingBy(Function.identity(), Collectors.counting())); } }
It should be
Map<String, Long> wordCountMap