8005306: Redundant cast warning in KeepAliveStream.java
authorchegar
Thu, 20 Dec 2012 15:04:53 +0000
changeset 14915 adbe1c55d078
parent 14914 69bfd88e3ea1
child 14916 5e9eb5d9de14
8005306: Redundant cast warning in KeepAliveStream.java Reviewed-by: alanb
jdk/src/share/classes/sun/net/www/http/KeepAliveStream.java
--- a/jdk/src/share/classes/sun/net/www/http/KeepAliveStream.java	Thu Dec 20 13:44:06 2012 +0000
+++ b/jdk/src/share/classes/sun/net/www/http/KeepAliveStream.java	Thu Dec 20 15:04:53 2012 +0000
@@ -83,7 +83,7 @@
             if (expected > count) {
                 long nskip = expected - count;
                 if (nskip <= available()) {
-                    do {} while ((nskip = (long) (expected - count)) > 0L
+                    do {} while ((nskip = (expected - count)) > 0L
                                  && skip(Math.min(nskip, available())) > 0L);
                 } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) {
                     //put this KeepAliveStream on the queue so that the data remaining