Files
openide/java/java-impl/resources/inspectionDescriptions/EndlessStream.html
2025-02-05 04:43:28 +00:00

9 lines
263 B
HTML

<html>
<body>
Reports non-short-circuit operations consuming an infinite stream. Such operations can be completed only by throwing an exception.
<p>Example:</p>
<pre><code>
Stream.iterate(0, i -> i + 1).collect(Collectors.toList())
</code></pre>
</body>
</html>