From 2d46951bcbc445ff4c9856a36c46a8b5838e7fe9 Mon Sep 17 00:00:00 2001 From: Ludovic Orban Date: Mon, 23 Nov 2020 15:51:43 +0100 Subject: [PATCH] remove unnecessary transition to READY in ContentProducer.isReady Signed-off-by: Ludovic Orban --- .../main/java/org/eclipse/jetty/server/AsyncContentProducer.java | 1 - .../src/main/java/org/eclipse/jetty/server/ContentProducer.java | 1 - 2 files changed, 2 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContentProducer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContentProducer.java index deab8243f0fd..e20b4c3a996e 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContentProducer.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContentProducer.java @@ -223,7 +223,6 @@ public boolean isReady() { if (LOG.isDebugEnabled()) LOG.debug("isReady(), got transformed content {} {}", content, this); - _httpChannel.getState().onContentAdded(); return true; } diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ContentProducer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ContentProducer.java index 1a2a477001e9..5b1b85bb0341 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ContentProducer.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ContentProducer.java @@ -114,7 +114,6 @@ public interface ContentProducer * If there isn't any and the implementation does not block, this method will trigger a * {@link javax.servlet.ReadListener} callback once some content is available. * This call is always non-blocking. - * After this call, state can be either of UNREADY or READY. * @return true if some content is immediately available, false otherwise. */ boolean isReady();