mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Liskov's Substitution Principle on lists
This commit is contained in:
1 file changed
+2
-1
@@ -45,6 +45,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public final class CarbonUtils {
|
||||
|
||||
@@ -52,7 +53,7 @@ public final class CarbonUtils {
|
||||
private static final String[] colors;
|
||||
|
||||
static {
|
||||
ArrayList<String> colorList = new ArrayList<>();
|
||||
List<String> colorList = new ArrayList<>();
|
||||
|
||||
for (NamedTextColor color : NamedTextColor.values()) {
|
||||
colorList.add(color.toString());
|
||||
|
||||
Reference in new issue
Block a user