Skip to content

Commit

Permalink
Backport e97f0fe1b4046bfcc40e85ba1bee4f4c40053300
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Oct 23, 2024
1 parent 3660c07 commit 039a5a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,9 @@ private PassFailJFrame(final Builder builder)
builder.positionWindows
.positionTestWindows(unmodifiableList(builder.testWindows),
builder.instructionUIHandler));
} else if (builder.testWindows.size() == 1) {
} else {
Window window = builder.testWindows.get(0);
positionTestWindow(window, builder.position);
} else {
positionTestWindow(null, builder.position);
}
}
showAllWindows();
Expand Down

0 comments on commit 039a5a8

Please sign in to comment.