squid:S1319 - Declarations should use Java collection interfaces such as List rather than specific implementation classes such as LinkedList
This commit is contained in:
@ -59,7 +59,7 @@ public class TreasureChest {
|
||||
* Get all items
|
||||
*/
|
||||
public List<Item> getItems() {
|
||||
ArrayList<Item> list = new ArrayList<>();
|
||||
List<Item> list = new ArrayList<>();
|
||||
list.addAll(items);
|
||||
return list;
|
||||
}
|
||||
|
Reference in New Issue
Block a user