提交 c8b4a0aa 编写于 作者: C chegar

8005306: Redundant cast warning in KeepAliveStream.java

Reviewed-by: alanb
上级 c0d43003
...@@ -83,7 +83,7 @@ class KeepAliveStream extends MeteredStream implements Hurryable { ...@@ -83,7 +83,7 @@ class KeepAliveStream extends MeteredStream implements Hurryable {
if (expected > count) { if (expected > count) {
long nskip = expected - count; long nskip = expected - count;
if (nskip <= available()) { if (nskip <= available()) {
do {} while ((nskip = (long) (expected - count)) > 0L do {} while ((nskip = (expected - count)) > 0L
&& skip(Math.min(nskip, available())) > 0L); && skip(Math.min(nskip, available())) > 0L);
} else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) { } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) {
//put this KeepAliveStream on the queue so that the data remaining //put this KeepAliveStream on the queue so that the data remaining
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册