changeset 6301:31d2f9995d6c

8005306: Redundant cast warning in KeepAliveStream.java Reviewed-by: alanb
author chegar
date Thu, 20 Dec 2012 15:04:53 +0000
parents d01a810798e0
children c1a55ee9618e
files src/share/classes/sun/net/www/http/KeepAliveStream.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/http/KeepAliveStream.java	Thu Dec 20 13:44:06 2012 +0000
+++ b/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