Use diamond operator everywhere

This commit is contained in:
mezz committed 2016-10-20 22:41:23 -07:00
1 parent 9812ddc4ce
commit 55c58cf5d9
140 files changed
+305 -305

No files matched your search

@@ -44,7 +44,7 @@ public enum Cocktail {
public Map<ICocktailIngredient, Integer> ingredients;
private Cocktail(final String name, final Glassware glassware, final int colour) {
this.ingredients = new HashMap<ICocktailIngredient, Integer>();
this.ingredients = new HashMap<>();
this.name = name;
this.glassware = glassware;
this.colour = colour;
@@ -83,7 +83,7 @@ public enum Cocktail {
}
static {
cocktailIngredients = new HashMap<String, ICocktailIngredient>();
cocktailIngredients = new HashMap<>();
Cocktail.Bellini.add(Alcohol.SparklingWine, 2);
Cocktail.Bellini.add(Juice.Peach, 1);
Cocktail.BlackRussian.add(Spirit.Vodka, 5);