Skip to content

Commit

Permalink
#7284 add strict content assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Dec 15, 2021
1 parent e894fc6 commit 804b208
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public void recycle()
assertLocked();
if (LOG.isDebugEnabled())
LOG.debug("recycling {}", this);
if (!_transformedContent.isSpecial())
throw new AssertionError();
if (!_rawContent.isSpecial())
throw new AssertionError();
if (_interceptor instanceof Destroyable)
((Destroyable)_interceptor).destroy();
_interceptor = null;
Expand Down

0 comments on commit 804b208

Please sign in to comment.