StreamToString
Calling toString on a Stream does not provide useful information

Category
Severity
ERROR
Maturity

The problem

The toString method on a Stream will print its identity, such as java.util.stream.ReferencePipeline$Head@6d06d69c. This is rarely what was intended.

Suppression

Suppress false positives by adding an @SuppressWarnings("StreamToString") annotation to the enclosing element.