From ce32233ed9a442b47456dddbefc06786cee7956c Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sat, 16 May 2020 18:39:49 +0300 Subject: Remove Lists.newArrayList usages --- src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java | 5 ++--- src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java index 585a807..012cf16 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java @@ -1,9 +1,8 @@ package io.github.cottonmc.cotton.gui.widget; +import java.util.ArrayList; import java.util.List; -import com.google.common.collect.Lists; - import io.github.cottonmc.cotton.gui.GuiDescription; import io.github.cottonmc.cotton.gui.ValidatedSlot; import io.github.cottonmc.cotton.gui.client.BackgroundPainter; @@ -14,7 +13,7 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.inventory.Inventory; public class WItemSlot extends WWidget { - private final List peers = Lists.newArrayList(); + private final List peers = new ArrayList<>(); private BackgroundPainter backgroundPainter; private Inventory inventory; private int startIndex = 0; diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java index fe32718..d01ec35 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java @@ -1,9 +1,8 @@ package io.github.cottonmc.cotton.gui.widget; +import java.util.ArrayList; import java.util.List; -import com.google.common.collect.Lists; - import io.github.cottonmc.cotton.gui.GuiDescription; import io.github.cottonmc.cotton.gui.client.BackgroundPainter; import net.fabricmc.api.EnvType; @@ -19,7 +18,7 @@ public abstract class WPanel extends WWidget { * *

The list is mutable. */ - protected final List children = Lists.newArrayList(); + protected final List children = new ArrayList<>(); @Environment(EnvType.CLIENT) private BackgroundPainter backgroundPainter = null; -- cgit