--- old/src/share/classes/javax/swing/plaf/metal/MetalUtils.java 2014-06-14 12:28:42.000000000 -0700 +++ new/src/share/classes/javax/swing/plaf/metal/MetalUtils.java 2014-06-14 12:28:42.000000000 -0700 @@ -210,7 +210,8 @@ */ static boolean drawGradient(Component c, Graphics g, String key, int x, int y, int w, int h, boolean vertical) { - java.util.List gradient = (java.util.List)UIManager.get(key); + @SuppressWarnings("unchecked") + java.util.List gradient = (java.util.List)UIManager.get(key); if (gradient == null || !(g instanceof Graphics2D)) { return false; } @@ -251,7 +252,7 @@ } public void paint(Component c, Graphics2D g, - java.util.List gradient, int x, int y, int w, + java.util.List gradient, int x, int y, int w, int h, boolean isVertical) { int imageWidth; int imageHeight; @@ -274,7 +275,8 @@ protected void paintToImage(Component c, Image image, Graphics g, int w, int h, Object[] args) { Graphics2D g2 = (Graphics2D)g; - java.util.List gradient = (java.util.List)args[0]; + @SuppressWarnings("unchecked") + java.util.List gradient = (java.util.List)args[0]; boolean isVertical = ((Boolean)args[1]).booleanValue(); // Render to the VolatileImage if (isVertical) {