Skip to content

Commit

Permalink
Issue #6084 - Add warnings for deprecated GzipHandler methods for Com…
Browse files Browse the repository at this point in the history
…pressionPool capacity.

Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Mar 24, 2021
1 parent df13b33 commit df87b6e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit df87b6e

Please sign in to comment.