diff -r e7d5af0b11e9 -r eed64ee05369 jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java --- a/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java Tue Jan 28 12:50:53 2014 +0400 +++ b/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java Tue Jan 28 09:42:05 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 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 @@ -665,7 +665,7 @@ { if (cm == cachedModel) { if (cached != null) { - Raster ras = (Raster) cached.get(); + Raster ras = cached.get(); if (ras != null && ras.getWidth() >= w && ras.getHeight() >= h) @@ -687,7 +687,7 @@ Raster ras) { if (cached != null) { - Raster cras = (Raster) cached.get(); + Raster cras = cached.get(); if (cras != null) { int cw = cras.getWidth(); int ch = cras.getHeight();