refactor IOUtils.toByteArray

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-22 00:19:12 +00:00
parent ac56bc174e
commit dea7c951bb
2 changed files with 1 additions and 2 deletions

View File

@ -242,7 +242,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
}
try (InputStream is = huc.getInputStream()) {
responseBytes = IOUtils.toByteArray(is, Integer.MIN_VALUE, getMaxTimestampResponseSize());
responseBytes = IOUtils.toByteArrayWithMaxLength(is, getMaxTimestampResponseSize());
}
break;
default:

View File

@ -296,7 +296,6 @@ public final class TestPOIXMLDocument {
}
}
@Disabled("needs investigation")
@Test
void testOSGIClassLoading() throws IOException {
byte[] data;