From df87b6e21e88d11906ce888da2d9daefa800e392 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Wed, 24 Mar 2021 14:07:58 +1100 Subject: [PATCH] Issue #6084 - Add warnings for deprecated GzipHandler methods for CompressionPool capacity. Signed-off-by: Lachlan Roberts --- .../java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java index 7311362a2ce1..cd95f796e135 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java @@ -891,6 +891,7 @@ public int getDeflaterPoolCapacity() @Deprecated public void setDeflaterPoolCapacity(int capacity) { + LOG.warn("DeflaterPool capacity not changed. DeflaterPool should be configured externally and set as a bean on the Server."); if (isStarted()) throw new IllegalStateException(getState()); } @@ -914,6 +915,7 @@ public int getInflaterPoolCapacity() @Deprecated public void setInflaterPoolCapacity(int capacity) { + LOG.warn("InflaterPool capacity not changed. InflaterPool should be configured externally and set as a bean on the Server."); if (isStarted()) throw new IllegalStateException(getState()); }