Community
Participate
Working Groups
Consider the Javadoc display of Stream.flatMap() as displayed in the Javadoc view. It is rendered as such: -------------------------------------------------------- If path is the path to a file, then the following produces a stream of the words contained in that file: Stream<String> lines = Files.lines(path, StandardCharsets.UTF_8); Stream<String> words = lines.flatMap(line -> Stream.of(line.split(" +"))); -------------------------------------------------------- The second line has an indentation of 5 whitespaces. Also, the Javadoc display of Stream.reduce(BinaryOperator) has an excess closing curly brace: -------------------------------------------------------- boolean foundAny = false; T result = null; for (T element : this stream) { if (!foundAny) { foundAny = true; result = element; } else result = accumulator.apply(result, element); } return foundAny ? Optional.of(result) : Optional.empty(); } -------------------------------------------------------- ... which is really the closing curly brace of the {@code} tag, not part of the code itself.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.