Application of rule java:S4174

Hello @MisterPi

It seems that you answered your question in this other thread.

I believe we can therefore close this one, and keep the discussion in the other one.