Remove redundant casts, unnecessary object creation, and string ==

This commit is contained in:
mezz committed 2016-10-21 00:32:06 -07:00
1 parent 100784b51b
commit a4cd13282a
57 files changed
+180 -156

No files matched your search

@@ -24,6 +24,7 @@ import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.Objects;
import java.util.Random;
public class Isolator {
@@ -82,7 +83,7 @@ public class Isolator {
@Override
public boolean isValid(final FluidStack stack) {
return stack.getFluid().getName() == "bioethanol";
return Objects.equals(stack.getFluid().getName(), "bioethanol");
}
});
final ComponentChargedSlots chargedSlots = new ComponentChargedSlots(machine);