fixes Jenkins/SonarQube issue about 'Inner assignment'