Skip to content

Commit

Permalink
Clean up missing nullable and deprecated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Oct 3, 2016
1 parent 071d4c5 commit 97a7e25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/mezz/jei/api/gui/IGuiFluidStackGroup.java
Expand Up @@ -30,10 +30,11 @@ public interface IGuiFluidStackGroup extends IGuiIngredientGroup<FluidStack> {
void init(int slotIndex, boolean input, int xPosition, int yPosition, int width, int height, int capacityMb, boolean showCapacity, @Nullable IDrawable overlay);

@Override
@Deprecated
void set(int slotIndex, Collection<FluidStack> fluidStacks);

@Override
void set(int slotIndex, FluidStack fluidStack);
void set(int slotIndex, @Nullable FluidStack fluidStack);

@Override
void addTooltipCallback(ITooltipCallback<FluidStack> tooltipCallback);
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/mezz/jei/api/gui/IGuiItemStackGroup.java
@@ -1,5 +1,6 @@
package mezz.jei.api.gui;

import javax.annotation.Nullable;
import java.util.Collection;
import java.util.List;

Expand Down Expand Up @@ -44,10 +45,11 @@ public interface IGuiItemStackGroup extends IGuiIngredientGroup<ItemStack> {
void setFromRecipe(int slotIndex, Object ingredients);

@Override
@Deprecated
void set(int slotIndex, Collection<ItemStack> itemStacks);

@Override
void set(int slotIndex, ItemStack itemStack);
void set(int slotIndex, @Nullable ItemStack itemStack);

@Override
void addTooltipCallback(ITooltipCallback<ItemStack> tooltipCallback);
Expand Down
Expand Up @@ -83,6 +83,7 @@ public void set(IIngredients ingredients) {
}

@Override
@Deprecated
public void set(int slotIndex, Collection<T> values) {
set(slotIndex, new ArrayList<T>(values));
}
Expand Down

0 comments on commit 97a7e25

Please sign in to comment.