Skip to content

Commit

Permalink
Nits in DebuggerWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
emichael committed Nov 5, 2023
1 parent 33a4eb6 commit 4734c33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public void actionPerformed(ActionEvent e) {
public void actionPerformed(ActionEvent e) {
List<EventTreeState> p =
currentState.pathToBestDescendent();
if (p.size() > 0) {
if (!p.isEmpty()) {
setState(p.get(0));
}
}
Expand Down Expand Up @@ -575,7 +575,7 @@ private void updateExceptionPane() {
} else {
p.setVisible(true);
p.setCollapsed(false);
l.setText(String.format(LINE_WRAPPING_FORMAT, t.toString()));
l.setText(String.format(LINE_WRAPPING_FORMAT, t));
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
l.setToolTipText(sw.toString());
Expand Down

0 comments on commit 4734c33

Please sign in to comment.