This is an automated email from the ASF dual-hosted git repository.
zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 331aafc [Hotfix] invalid local properties in ZSession
331aafc is described below
commit 331aafc89e766828acf51c1bb2323e6df3316333
Author: Jeff Zhang <[email protected]>
AuthorDate: Thu Dec 17 11:05:38 2020 +0800
[Hotfix] invalid local properties in ZSession
---
.../src/main/java/org/apache/zeppelin/client/ZSession.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
b/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
index f411ed6..9dbcfda 100644
--- a/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
+++ b/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
@@ -362,9 +362,10 @@ public class ZSession {
}
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);