Skip to content

Commit 8f88d8e

Browse files
committed
[GUI] support to set empty value
1 parent fb07073 commit 8f88d8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gui/src/main/java/org/astraea/gui/pane/Argument.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ default Set<String> emptyValueKeys() {
5656
default Map<String, String> nonEmptyTexts() {
5757
return texts().entrySet().stream()
5858
.filter(entry -> entry.getValue().isPresent())
59-
.collect(Collectors.toUnmodifiableMap(Map.Entry::getKey, e -> e.getValue().get()));
59+
.collect(
60+
Collectors.toUnmodifiableMap(
61+
Map.Entry::getKey,
62+
e -> e.getValue().get().equals("empty") ? "" : e.getValue().get()));
6063
}
6164

6265
/**

0 commit comments

Comments
 (0)