Changeset 533f762
- Timestamp:
- Dec 9, 2011 1:19:18 PM (9 years ago)
- Branches:
- master
- Children:
- 6d4a9ab
- Parents:
- 49d88f00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
core/java/src/net/i2p/data/DataHelper.java
r49d88f00 r533f762 1437 1437 public static byte[] decompress(byte orig[], int offset, int length) throws IOException { 1438 1438 if ((orig == null) || (orig.length <= 0)) return orig; 1439 if (offset + length > orig.length) 1440 throw new IOException("Bad params arrlen " + orig.length + " off " + offset + " len " + length); 1439 1441 1440 1442 ReusableGZIPInputStream in = ReusableGZIPInputStream.acquire(); … … 1459 1461 System.arraycopy(outBuf.getData(), 0, rv, 0, written); 1460 1462 cache.release(outBuf); 1463 // TODO release in finally block 1461 1464 ReusableGZIPInputStream.release(in); 1462 1465 return rv;
Note: See TracChangeset
for help on using the changeset viewer.