src/share/classes/sun/font/Decoration.java

Print this page

        

@@ -155,12 +155,12 @@
                        boolean swapColors,
                        boolean strikethrough,
                        Underline stdUnderline,
                        Underline imUnderline) {
 
-            fgPaint = (Paint) foreground;
-            bgPaint = (Paint) background;
+            fgPaint = foreground;
+            bgPaint = background;
 
             this.swapColors = swapColors;
             this.strikethrough = strikethrough;
 
             this.stdUnderline = stdUnderline;