use List interface instead of ArrayList implementation in several places

This commit is contained in:
CrushedPixel
2015-07-12 20:55:13 +02:00
parent 06686d20a6
commit e9a73cb028
4 changed files with 14 additions and 9 deletions

View File

@@ -150,7 +150,7 @@ public class GuiEntryList<T extends GuiEntryListEntry> extends GuiAdvancedTextFi
fireSelectionChangeEvent();
}
public ArrayList<T> getCopyOfElements() {
public List<T> getCopyOfElements() {
return new ArrayList<T>(elements);
}