Skip to content
Snippets Groups Projects
Commit cf9dd685 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

more elegant way of joining strings

parent 5129ac39
Branches
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ public class CorpusChecker {
//callbackUrl = defaultCallbackUrl ;
}
if (error) {
String errorMsg = "Missing parameters: " + missing.stream().reduce((s1, s2) -> s1 + ", " + s2).get();
String errorMsg = "Missing parameters: " + String.join(", ", missing);
logger.error(errorMsg);
return Response.status(400).entity("400 - " + errorMsg).build();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment