Skip to content

Commit 59c9ccf

Browse files
hansonrhansonr
authored andcommitted
not significant
1 parent 2d3aa2c commit 59c9ccf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sources/net.sf.j2s.java.core/src/java/awt/Window.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,14 +3430,12 @@ public void setOpaque(boolean opaque) {
34303430
private static final Color TRANSPARENT_BACKGROUND_COLOR = new Color(0, 0, 0, 0);
34313431

34323432
private static void setLayersOpaque(Component component, boolean isOpaque) {
3433-
// Shouldn't use instanceof to avoid loading Swing classes
3434-
// if it's a pure AWT application.
34353433
if (component instanceof RootPaneContainer) {
34363434
RootPaneContainer rpc = (RootPaneContainer) component;
34373435
JRootPane root = rpc.getRootPane();
34383436
JLayeredPane lp = root.getLayeredPane();
34393437
Container c = root.getContentPane();
3440-
JComponent content = (c instanceof JComponent) ? (JComponent) c : null;
3438+
JComponent content = (c instanceof JComponent ? (JComponent) c : null);
34413439
// JComponent gp = (rpc.getGlassPane() instanceof JComponent) ? (JComponent) rpc
34423440
// .getGlassPane() : null;
34433441
// if (gp != null) {

0 commit comments

Comments
 (0)