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

Print this page

        

@@ -65,10 +65,11 @@
     }
 
     private static BumpBuffer createBuffer(GraphicsConfiguration gc,
                                            Color topColor, Color shadowColor, Color backColor) {
         AppContext context = AppContext.getAppContext();
+        @SuppressWarnings("unchecked")
         List<BumpBuffer> buffers = (List<BumpBuffer>) context.get(METAL_BUMPS);
         if (buffers == null) {
             buffers = new ArrayList<BumpBuffer>();
             context.put(METAL_BUMPS, buffers);
         }