Fixed StringSet.toString to use comma as separator.
This commit is contained in:
parent
6984f9fbfc
commit
e8e29cb938
1 changed files with 9 additions and 9 deletions
|
@ -190,7 +190,14 @@ public class StringSet extends HashSet<String>
|
|||
{
|
||||
StringSet result;
|
||||
|
||||
String merge = this.toString();
|
||||
StringBuffer buffer = new StringBuffer(length());
|
||||
|
||||
for (String string : this)
|
||||
{
|
||||
buffer.append(string);
|
||||
}
|
||||
|
||||
String merge = buffer.toString();
|
||||
|
||||
clear();
|
||||
add(merge);
|
||||
|
@ -382,14 +389,7 @@ public class StringSet extends HashSet<String>
|
|||
{
|
||||
String result;
|
||||
|
||||
StringBuffer buffer = new StringBuffer(length());
|
||||
|
||||
for (String string : this)
|
||||
{
|
||||
buffer.append(string);
|
||||
}
|
||||
|
||||
result = buffer.toString();
|
||||
result = toStringList().toStringWithCommas();
|
||||
|
||||
//
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue