We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f13b5 commit 46a66e0Copy full SHA for 46a66e0
1 file changed
src/main/java/org/tron/common/utils/DialogOptional.java
@@ -14,7 +14,9 @@ private DialogOptional() {
14
}
15
16
public synchronized DialogOptional setValue(Dialog value) {
17
- this.value = Optional.ofNullable(value);
+ if (!this.value.isPresent()) {
18
+ this.value = Optional.of(value);
19
+ }
20
return this;
21
22
0 commit comments