Skip to content

Commit

Permalink
[Hotfix] invalid local properties in ZSession
Browse files Browse the repository at this point in the history
  • Loading branch information
zjffdu committed Dec 17, 2020
1 parent 5746f6c commit ffd1e50
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,10 @@ public ExecuteResult submit(String subInterpreter,
}
if (localProperties != null && !localProperties.isEmpty()) {
builder.append("(");
for (Map.Entry<String, String> entry : localProperties.entrySet()) {
builder.append(entry.getKey() + "=\"" + entry.getValue() + "\"");
}
List<String> propertyString = localProperties.entrySet().stream()
.map(entry -> (entry.getKey() + "=\"" + entry.getValue() + "\""))
.collect(Collectors.toList());
builder.append(StringUtils.join(propertyString, ","));
builder.append(")");
}
builder.append(" " + code);
Expand Down

0 comments on commit ffd1e50

Please sign in to comment.