changeset 39133 | b5641ce64cf7 |
parent 38856 | cc3a0d1e96e0 |
child 39729 | ef2b0635618f |
--- a/jdk/src/java.httpclient/share/classes/java/net/http/WSReceiver.java Tue Jun 21 16:52:16 2016 +0100 +++ b/jdk/src/java.httpclient/share/classes/java/net/http/WSReceiver.java Tue Jun 21 18:51:18 2016 +0100 @@ -101,11 +101,10 @@ } } - long request(long n) { + void request(long n) { long newDemand = demand.accumulateAndGet(n, (p, i) -> p + i < 0 ? Long.MAX_VALUE : p + i); handler.signal(); assert newDemand >= 0 : newDemand; - return newDemand; } private boolean getData() throws IOException {