FN on S2175 with primitive types

SonarQube version 7.9.1
Java 1.8
SonarJava: 5.13.1 (build 18282)

When trying to remove an array of primitive type eg: bool[ ‎] ,byte[ ‎], int [ ‎] … from a collection of type array of primitive type eg : List<byte[‎ ]> ,I get " A “List<byte[‎ ]>” cannot contain a “byte[‎ ]” ".
I believe this is a false positive (It doesn’t occurs with objects eg: Byte[ ‎]).

Below is the code
Screenshot%20from%202019-11-26%2012-18-55

Hello @mnbghouri, welcome to the community.

I tried the code against the current master of SonarJava (6.0), and this issue is not reported anymore.

We spend quite some time on SonarJava these past months (front-end migration, hardening, …), I gladly think this is a positive side effect of these efforts!

Best,
Quentin

1 Like

Hi @Quentin ,thanks for the reply.
Do you have an idea when the SonarJava (6.0) will be available in production ?

Best,
Mohamed Nour

No deadline yet.

What I can say is that it’s a big step and we are reaching the end, but we don’t want to rush these last important stages.
You can be sure that we are looking forward to see it in production aswell! :wink:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.