--- old/src/share/classes/javax/swing/plaf/synth/ImagePainter.java 2014-07-02 23:02:37.000000000 -0700 +++ new/src/share/classes/javax/swing/plaf/synth/ImagePainter.java 2014-07-02 23:02:36.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -60,6 +60,7 @@ // we use a AppContext specific Paint9Painter. It's backed via // a WeakRef so that it can go away if the look and feel changes. synchronized(CACHE_KEY) { + @SuppressWarnings("unchecked") WeakReference cacheRef = (WeakReference)AppContext.getAppContext(). get(CACHE_KEY);