squid:S2293 - The diamond operator should be used

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

No files matched your search

@@ -141,7 +141,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()));
}