From 3d623292f8899b6bedb98d9536441dff697a203f Mon Sep 17 00:00:00 2001 From: drcrazy Date: Fri, 10 Nov 2017 12:48:01 +0300 Subject: [PATCH] Fixed more warnings --- .../AssemblingMachineRecipeHandler.java | 1 + .../RollingMachineRecipeHandler.java | 1 + .../RollingMachineRecipeWrapper.java | 4 ++-- .../java/techreborn/utils/IC2ItemCharger.java | 24 +++++++++++++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/java/techreborn/compat/jei/assemblingMachine/AssemblingMachineRecipeHandler.java b/src/main/java/techreborn/compat/jei/assemblingMachine/AssemblingMachineRecipeHandler.java index 885ba1ba6..e1780ab71 100644 --- a/src/main/java/techreborn/compat/jei/assemblingMachine/AssemblingMachineRecipeHandler.java +++ b/src/main/java/techreborn/compat/jei/assemblingMachine/AssemblingMachineRecipeHandler.java @@ -32,6 +32,7 @@ import techreborn.compat.jei.RecipeCategoryUids; import javax.annotation.Nonnull; +@SuppressWarnings("deprecation") public class AssemblingMachineRecipeHandler implements IRecipeHandler { @Nonnull private final IJeiHelpers jeiHelpers; diff --git a/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeHandler.java b/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeHandler.java index fb497877b..782332c93 100644 --- a/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeHandler.java +++ b/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeHandler.java @@ -30,6 +30,7 @@ import techreborn.compat.jei.RecipeCategoryUids; import javax.annotation.Nonnull; +@SuppressWarnings({"deprecation" }) public class RollingMachineRecipeHandler implements IRecipeHandler { @Nonnull @Override diff --git a/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeWrapper.java b/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeWrapper.java index ada55f19c..2cb01d280 100644 --- a/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeWrapper.java +++ b/src/main/java/techreborn/compat/jei/rollingMachine/RollingMachineRecipeWrapper.java @@ -52,13 +52,13 @@ public class RollingMachineRecipeWrapper implements IRecipeWrapper { IJeiHelpers jeiHelpers, IRecipe baseRecipe) { IRecipeWrapper recipeWrapper; if (baseRecipe instanceof ShapelessRecipes) { - recipeWrapper = new ShapelessRecipeWrapper(jeiHelpers, baseRecipe); + recipeWrapper = new ShapelessRecipeWrapper(jeiHelpers, baseRecipe); } else if (baseRecipe instanceof ShapedRecipes) { recipeWrapper = new ShapedRecipesWrapper(jeiHelpers, (ShapedRecipes) baseRecipe); } else if (baseRecipe instanceof ShapedOreRecipe) { recipeWrapper = new ShapedOreRecipeWrapper(jeiHelpers, (ShapedOreRecipe) baseRecipe); } else if (baseRecipe instanceof ShapelessOreRecipe) { - recipeWrapper = new ShapelessRecipeWrapper(jeiHelpers, baseRecipe); + recipeWrapper = new ShapelessRecipeWrapper(jeiHelpers, baseRecipe); } else { return null; } diff --git a/src/main/java/techreborn/utils/IC2ItemCharger.java b/src/main/java/techreborn/utils/IC2ItemCharger.java index d39eb6e6d..52d0475cc 100644 --- a/src/main/java/techreborn/utils/IC2ItemCharger.java +++ b/src/main/java/techreborn/utils/IC2ItemCharger.java @@ -1,3 +1,27 @@ +/* + * This file is part of TechReborn, licensed under the MIT License (MIT). + * + * Copyright (c) 2017 TechReborn + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + package techreborn.utils; import ic2.api.item.ElectricItem;