Skip to content

Commit 62c9349

Browse files
authored
Don't compute CommandManager.toString() (#428)
* Don't unconditionally compute parameters of LOG.info(); Fix #427
1 parent d0939c8 commit 62c9349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rta/src/main/java/com/gluonhq/richtextarea/undo/CommandManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void execute(AbstractCommand<T> cmd) {
5656
undoStack.push(cmd);
5757
redoStack.clear();
5858
end();
59-
LOGGER.log(Level.FINE, "Execute: " + this);
59+
LOGGER.log(Level.FINE, () -> "Execute: " + this);
6060
}
6161

6262
public void undo() {
@@ -65,7 +65,7 @@ public void undo() {
6565
cmd.undo(context);
6666
redoStack.push(cmd);
6767
end();
68-
LOGGER.log(Level.FINE, "Undo: " + this);
68+
LOGGER.log(Level.FINE, () -> "Undo: " + this);
6969
}
7070
}
7171

0 commit comments

Comments
 (0)