Hi All,
i have problem issue squid:S2293 in conditional if without curly braces.
when use java 8 this issue was open and when use java 7 this issue was fixed.
why this happen ?.
Budi Suryadi
Hi All,
i have problem issue squid:S2293 in conditional if without curly braces.
when use java 8 this issue was open and when use java 7 this issue was fixed.
why this happen ?.
Budi Suryadi
Hello, I have same issues. Can anybody help with issue?
This is thanks to this ticket : https://jira.sonarsource.com/browse/SONARJAVA-1372
In java 8, the type inference of java compiler was improved and so you can use diamond operator in conditionals (so issue is raised) whereas in java 7 it would not compile.