SONARJAVA-574 RSPEC-1848: Objects should not be created to be dropped immediately without being used