Suppress some warnings

This commit is contained in:
Zixxl committed 2015-07-08 13:57:26 +02:00
1 parent 7317d30ca1
commit 003a5dc92c
3 files changed
+11 -2

No files matched your search

@@ -30,7 +30,8 @@ public class BlastFurnace {
}
private static class Add extends BaseListAddition<IBlastFurnaceRecipe> {
public Add(IBlastFurnaceRecipe recipe) {
@SuppressWarnings("unchecked")
public Add(IBlastFurnaceRecipe recipe) {
super(BlastFurnace.name, (List<IBlastFurnaceRecipe>)RailcraftHelper.furnace);
recipes.add(recipe);
}
@@ -59,6 +60,7 @@ public class BlastFurnace {
}
private static class Remove extends BaseListRemoval<IBlastFurnaceRecipe> {
@SuppressWarnings("unchecked")
public Remove(List<IBlastFurnaceRecipe> recipes) {
super(BlastFurnace.name, (List<IBlastFurnaceRecipe>)RailcraftHelper.furnace, recipes);
}
@@ -85,7 +85,8 @@ public class CokeOven {
private static class Add extends BaseListAddition<ICokeOvenRecipe> {
public Add(ICokeOvenRecipe recipe) {
@SuppressWarnings("unchecked")
public Add(ICokeOvenRecipe recipe) {
super(CokeOven.name, (List<ICokeOvenRecipe>)RailcraftCraftingManager.cokeOven.getRecipes());
recipes.add(recipe);
}
@@ -116,6 +117,8 @@ public class CokeOven {
}
private static class Remove extends BaseListRemoval<ICokeOvenRecipe> {
@SuppressWarnings("unchecked")
public Remove(List<ICokeOvenRecipe> recipes) {
super(CokeOven.name, (List<ICokeOvenRecipe>)RailcraftHelper.oven, recipes);
}
@@ -36,6 +36,8 @@ public class RockCrusher {
}
private static class Add extends BaseListAddition<IRockCrusherRecipe> {
@SuppressWarnings("unchecked")
public Add(IRockCrusherRecipe recipe) {
super(RockCrusher.name, (List<IRockCrusherRecipe>)RailcraftHelper.crusher);
recipes.add(recipe);
@@ -67,6 +69,8 @@ public class RockCrusher {
}
private static class Remove extends BaseListRemoval<IRockCrusherRecipe> {
@SuppressWarnings("unchecked")
public Remove(List<IRockCrusherRecipe> recipes) {
super("Rock Crusher", (List<IRockCrusherRecipe>)RailcraftHelper.crusher, recipes);
}