Example #1
0
 public void returnDecompressor(Decompressor decompressor) {
   if (decompressor != null) {
     CodecPool.returnDecompressor(decompressor);
     if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
       decompressor.end();
     }
   }
 }
Example #2
0
 public void returnDecompressor(Decompressor decompressor) {
   if (decompressor != null) {
     if (LOG.isTraceEnabled()) LOG.trace("Returning decompressor " + decompressor + " to pool.");
     CodecPool.returnDecompressor(decompressor);
     if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
       if (LOG.isTraceEnabled()) LOG.trace("Ending decompressor " + decompressor);
       decompressor.end();
     }
   }
 }