Merge pull request #364 from DevFactory/release/The-diamond-operator-should-be-used-fix-1

squid:S2293 - The diamond operator should be used
This commit is contained in:
Ilkka Seppälä
2016-02-01 22:26:43 +02:00
13 changed files with 17 additions and 17 deletions

View File

@ -163,7 +163,7 @@ public class CakeBakingServiceImpl implements CakeBakingService {
CakeToppingInfo cakeToppingInfo =
new CakeToppingInfo(cake.getTopping().getId(), cake.getTopping().getName(), cake
.getTopping().getCalories());
ArrayList<CakeLayerInfo> cakeLayerInfos = new ArrayList<CakeLayerInfo>();
ArrayList<CakeLayerInfo> cakeLayerInfos = new ArrayList<>();
for (CakeLayer layer : cake.getLayers()) {
cakeLayerInfos.add(new CakeLayerInfo(layer.getId(), layer.getName(), layer.getCalories()));
}