diff --git a/src/fr/devinsy/util/StringList.java b/src/fr/devinsy/util/StringList.java index 6d01c4a..2ab23f5 100755 --- a/src/fr/devinsy/util/StringList.java +++ b/src/fr/devinsy/util/StringList.java @@ -709,14 +709,24 @@ public class StringList extends ArrayList implements CharSequence { String result; - StringBuffer buffer = new StringBuffer(length()); - - for (String string : this) + if (size() == 1) { - buffer.append(string); - } + // + result = get(0); - result = buffer.toString(); + } + else + { + // + StringBuffer buffer = new StringBuffer(length()); + + for (String string : this) + { + buffer.append(string); + } + + result = buffer.toString(); + } // return (result);