SONARJAVA-496 Fix a false negative