mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 04:10:07 +00:00
Use diamond operator everywhere
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user