Browse Source

refactor IOUtils.toByteArray

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898292 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_1
PJ Fanning 2 years ago
parent
commit
dea7c951bb

+ 1
- 1
poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java 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:

+ 0
- 1
poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java View File

@@ -296,7 +296,6 @@ public final class TestPOIXMLDocument {
}
}

@Disabled("needs investigation")
@Test
void testOSGIClassLoading() throws IOException {
byte[] data;

Loading…
Cancel
Save