Java
Non-short-circuit operation consumes infinite stream
Warning
New
Last modified: 03 December 2024Reports non-short-circuit operations consuming an infinite stream. Such operations can be completed only by throwing an exception.
Example:
Stream.iterate(0, i -> i + 1).collect(Collectors.toList())
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
EndlessStream
This inspection depends on the Java feature 'Stream and Optional API', which is available since Java 8.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?