Skip to content
Snippets Groups Projects
Commit 7cff355b authored by felmer's avatar felmer
Browse files

LMS-2766 Weakening in extractSet() condition on argument to be treated as empty list.

SVN: 24371
parent 0c1c9e07
No related branches found
No related tags found
No related merge requests found
......@@ -64,12 +64,12 @@ public class ServerUtils
* Extracts from the comma-separated list of strings all distinct strings.
*
* @return an empty list if the argument is <code>null</code>, an empty string or starts with
* '${'.
* '$'.
*/
public static Set<String> extractSet(String commaSeparatedList)
{
Set<String> result = new HashSet<String>();
if (commaSeparatedList != null && commaSeparatedList.startsWith("${") == false)
if (commaSeparatedList != null && commaSeparatedList.startsWith("$") == false)
{
String[] terms = commaSeparatedList.split(",");
for (String term : terms)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment