From 2628e80f41978df79ffb0eedd53a0f7e3db6ae13 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 28 Jun 2014 18:42:25 -0700 Subject: [PATCH] Made SimpleDescription's lists modifiable. --- .../com/sk89q/worldedit/util/command/SimpleDescription.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/util/command/SimpleDescription.java b/src/main/java/com/sk89q/worldedit/util/command/SimpleDescription.java index 111ee68e5..efd5aed95 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/SimpleDescription.java +++ b/src/main/java/com/sk89q/worldedit/util/command/SimpleDescription.java @@ -19,6 +19,7 @@ package com.sk89q.worldedit.util.command; +import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -27,8 +28,8 @@ import java.util.List; */ public class SimpleDescription implements Description { - private List parameters = Collections.emptyList(); - private List permissions = Collections.emptyList(); + private List parameters = new ArrayList(); + private List permissions = new ArrayList(); private String description; private String help; private String overrideUsage;