green-code-initiative/ecoCode

[EC75] Useless rule - deprecation

Closed this issue · 1 comments

Concatenated strings are automatically optimized by the compiler, in case of a single string or a string appended in a loop. This behaviour is described in the following page :

https://medium.com/javarevisited/java-compiler-optimization-for-string-concatenation-7f5237e5e6ed

Saying that, I think this rule is useless.

As confirmed with core-team, this rule will be deprecated soon because not applicable for Java since jdk8.
check status of PR #259