SONAR-926 fix compilation on Java 6