Skip to content

Commit

Permalink
Allow immutable map to be passed as argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Jan 24, 2025
1 parent 6b9f852 commit 9fc0463
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public Map<String, Object> options() {

@Override
public void emitJson(Writer writer) throws IOException {
options.put("destroyOnClose", true);
emitJson(writer, "displayNotification", content(), options);
var extOpts = new HashMap<>(options);
extOpts.put("destroyOnClose", true);
emitJson(writer, "displayNotification", content(), extOpts);
}

}

0 comments on commit 9fc0463

Please sign in to comment.