< prev index next >

src/share/classes/javax/swing/plaf/metal/MetalBumps.java

Print this page
rev 1580 : 6727661: Code improvement and warnings removing from the swing/plaf packages
Summary: Removed unnecessary castings and other warnings
Reviewed-by: alexp
Contributed-by: Florian Brunner <fbrunnerlist@gmx.ch>

*** 112,123 **** } } public void paintIcon( Component c, Graphics g, int x, int y ) { GraphicsConfiguration gc = (g instanceof Graphics2D) ? ! (GraphicsConfiguration)((Graphics2D)g). ! getDeviceConfiguration() : null; if ((buffer == null) || !buffer.hasSameConfiguration(gc, topColor, shadowColor, backColor)) { buffer = createBuffer(gc, topColor, shadowColor, backColor); } --- 112,122 ---- } } public void paintIcon( Component c, Graphics g, int x, int y ) { GraphicsConfiguration gc = (g instanceof Graphics2D) ? ! ((Graphics2D) g).getDeviceConfiguration() : null; if ((buffer == null) || !buffer.hasSameConfiguration(gc, topColor, shadowColor, backColor)) { buffer = createBuffer(gc, topColor, shadowColor, backColor); }
< prev index next >