IntelliJ IDEA is giving me a weird "weak warning" in my code where I loop through an ArrayList:

From what I know this is already a foreach-loop, so I'm confused why IDEA gives me this warning. I'm assuming that this is a bug, what do you think?
When I click "more" it shows the following text -
This inspection reports foreach loops which can be replaced with stream api calls. Stream api is not available under Java 1.7 or earlier JVMs.
IntelliJ IDEA wants to replace the loop with a Java 8 stream api forEach() call (using a lambda). I think that warning is a little unclear, but it's from the Java | Java language level migration aids | foreach loop can be collapsed with stream api inspection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With