Code review request: 8003263: redundant cast build failure after 8003120
Weijun Wang
weijun.wang at oracle.com
Mon Nov 12 08:43:26 UTC 2012
A small webrev:
http://cr.openjdk.java.net/~weijun/8003263/webrev.00/
The reason is that 8003120 added a new line
InputStream istream = (InputStream)resources.next();
but resources is already of type NamingEnumeration<InputStream>.
Building now shows
../../../src/share/classes/com/sun/naming/internal/ResourceManager.java:563:
warning: [cast] redundant cast to InputStream
InputStream istream =
(InputStream)resources.next();
Noreg-trivial.
Thanks
Max
More information about the core-libs-dev
mailing list