Skip to content
Snippets Groups Projects
Commit ed64dc22 authored by kohleman's avatar kohleman
Browse files

cannot use Java8 features...

SVN: 37156
parent 24c59680
No related branches found
No related tags found
No related merge requests found
...@@ -134,15 +134,19 @@ public class TrackingBO ...@@ -134,15 +134,19 @@ public class TrackingBO
else if (commandLineMap.containsKey(TrackingClient.CL_PARAMETER_LIST_SPACES)) else if (commandLineMap.containsKey(TrackingClient.CL_PARAMETER_LIST_SPACES))
{ {
sendEmails = false; sendEmails = false;
String trimmedSpaceWhiteList = "";
String spaceWhiteList = (params.getSpaceWhitelist());
trimmedSpaceWhiteList = spaceWhiteList.replace(" ", "");
// trim each list element and sort then // trim each list element and sort then
String trimmedSpaceList = // String trimmedSpaceList =
Pattern.compile(",") // Pattern.compile(",")
.splitAsStream(params.getSpaceWhitelist()) // .splitAsStream(params.getSpaceWhitelist())
.map(String :: trim) // .map(String :: trim)
.sorted() // .sorted()
.collect(Collectors.joining(",")); // .collect(Collectors.joining(","));
System.out.println(trimmedSpaceList); System.out.println(trimmedSpaceWhiteList);
} }
else else
......
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