1

I have this lines in my Springboot Application.

String[] profiles = environment.getActiveProfiles();

if (Arrays.stream(profiles).anyMatch(profil->"dev".equalsIgnoreCase(profil))) {
        return "login";
}

I use Sonarqube in order to track bugs and it tells me:

'Close this "Stream". Bug Blocker '

I would like to know if it is a false positive and why ?

DavidPi
  • 415
  • 3
  • 18

0 Answers0