mfroehlich
(Marvin Fröhlich)
1
Using this type:
BiConsumer< Integer, Integer >
is suggested to be replaced by
ObIntConsumer< Integer >
In this sspecial case this is not an improvement and the rule should not hit.
Of course this will also apply to other functional interfaces and generic types.
Hi Marvin,
Thank you for your message. Indeed sometimes such suggestions from the rule S4276 seem to be questionable.
I’ve created a ticket to not report issues in these cases:
https://jira.sonarsource.com/browse/SONARJAVA-3776
Feel free to have a look and share your thoughts, whether you do not agree with it.
Kind regards,
Margarita
mfroehlich
(Marvin Fröhlich)
5
Thanks, Margarita. Looks very fine.
Cheers
system
(system)
Closed
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.