squid:S2293 - The diamond operator should be used

This commit is contained in:
Mohammed Ezzat
2016-01-29 07:33:34 +02:00
parent 1a55f3a420
commit 409ff027b8
13 changed files with 17 additions and 17 deletions

View File

@@ -48,13 +48,13 @@ public class MagicServiceImpl implements MagicService {
@Override
public List<Wizard> findWizardsWithSpellbook(String name) {
Spellbook spellbook = spellbookDao.findByName(name);
return new ArrayList<Wizard>(spellbook.getWizards());
return new ArrayList<>(spellbook.getWizards());
}
@Override
public List<Wizard> findWizardsWithSpell(String name) {
Spell spell = spellDao.findByName(name);
Spellbook spellbook = spell.getSpellbook();
return new ArrayList<Wizard>(spellbook.getWizards());
return new ArrayList<>(spellbook.getWizards());
}
}