Skip to content

Commit

Permalink
refactor(NonReversedShapedRecipe): use diamond operator
Browse files Browse the repository at this point in the history
ref:
本の虫: java 7が斜め上を行っている件について
https://cpplover.blogspot.com/2009/11/java-7.html
  • Loading branch information
yumetodo committed Nov 21, 2020
1 parent fe0624f commit 86eec7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static ShapedRecipes addShapedRecipe(ItemStack output, Object... params)

HashMap<Character, ItemStack> hashmap;

for (hashmap = new HashMap<Character, ItemStack>(); i < params.length; i += 2) {
for (hashmap = new HashMap<>(); i < params.length; i += 2) {
Character character = (Character) params[i];
ItemStack itemstack1 = null;

Expand Down

0 comments on commit 86eec7f

Please sign in to comment.