]> source.dussan.org Git - poi.git/commitdiff
slf4j 2.0.13
authorPJ Fanning <fanningpj@apache.org>
Fri, 12 Apr 2024 17:28:41 +0000 (17:28 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 12 Apr 2024 17:28:41 +0000 (17:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916936 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
build.xml
poi-excelant/build.gradle
poi-integration/build.gradle
poi-ooxml/build.gradle
poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFTemp.java [new file with mode: 0644]

index 287e80a360548b83caecf80b19575ab6361fd231..cc7aa55b14086e48b0dfef5e70d10d41d668f992 100644 (file)
@@ -153,7 +153,7 @@ subprojects {
         all {
             resolutionStrategy {
                 force "commons-io:commons-io:${commonsIoVersion}"
-                force 'org.slf4j:slf4j-api:2.0.12'
+                force 'org.slf4j:slf4j-api:2.0.13'
                 force 'com.fasterxml.woodstox:woodstox-core:6.6.2'
             }
         }
index 504c792f918c7afce34fd71e35ed35593abea404..63211b0d285ca3e50eb18737f013b407480d2273 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -340,7 +340,7 @@ under the License.
     <dependency prefix="ooxml.test.reflections" artifact="org.reflections:reflections:0.10.2" usage="ooxml-tests"/>
     <dependency prefix="ooxml.test.guava" artifact="com.google.guava:guava:32.1.1-jre" usage="ooxml-tests"/>
     <dependency prefix="ooxml.test.javassist" artifact="org.javassist:javassist:3.27.0-GA" usage="ooxml-tests"/>
-    <dependency prefix="ooxml.test.slf4j-api" artifact="org.slf4j:slf4j-api:2.0.12" usage="ooxml-tests"/>
+    <dependency prefix="ooxml.test.slf4j-api" artifact="org.slf4j:slf4j-api:2.0.13" usage="ooxml-tests"/>
     <dependency prefix="ooxml.test.opczip" artifact="com.github.rzymek:opczip:1.2.0" usage="ooxml-tests"/>
 
     <!-- coverage libs -->
index 8e55d4488ebf9f8e3ed30b21cc26464981f32c8e..f3875e1030a08b21087a12d30fce2bf7032d70bd 100644 (file)
@@ -43,7 +43,7 @@ dependencies {
     }
     testImplementation 'com.google.guava:guava:32.1.1-jre'
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
-    testImplementation 'org.slf4j:slf4j-simple:2.0.12'
+    testImplementation 'org.slf4j:slf4j-simple:2.0.13'
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
 }
 
index c826a9dcd1e6f98daf3849baa7cdfd7f2a3c3def..343c9e03737483d64589fb16bab7db4e8e6e4394 100644 (file)
@@ -76,7 +76,7 @@ dependencies {
     }
     testImplementation project(path: ':poi-ooxml-lite-agent', configuration: 'archives')
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
-    testImplementation 'org.slf4j:slf4j-simple:2.0.12'
+    testImplementation 'org.slf4j:slf4j-simple:2.0.13'
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
 }
 
index 58f5f824f295292f37cc759f8bd6de2a3e6e6987..089eaf9bbcd934cdd552992a53fa60fbb0dade85 100644 (file)
@@ -125,7 +125,7 @@ dependencies {
     // prevent slf4j warnings coming from xmlsec -> slf4j-api 1.7.x dependency
     // see https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
-    testImplementation 'org.slf4j:slf4j-simple:2.0.12'
+    testImplementation 'org.slf4j:slf4j-simple:2.0.13'
 
     broken("org.apache.xmlgraphics:batik-script:${batikVersion}"){
         exclude group: 'xalan', module: 'xalan'
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFTemp.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFTemp.java
new file mode 100644 (file)
index 0000000..8f64fed
--- /dev/null
@@ -0,0 +1,23 @@
+package org.apache.poi.xssf.usermodel;
+
+import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+
+public class TestXSSFTemp {
+  @Test
+  public void testWrite() throws IOException {
+    try(XSSFWorkbook wb = new XSSFWorkbook()) {
+      XSSFSheet sheet = wb.createSheet();
+      XSSFRow row = sheet.createRow(0);
+      for (int i = 0; i < 10000; i++) {
+        XSSFCell cell = row.createCell(i);
+        cell.setCellValue("cell " + i);
+      }
+      try (UnsynchronizedByteArrayOutputStream bos = UnsynchronizedByteArrayOutputStream.builder().get()) {
+        wb.write(bos);
+      }
+    }
+  }
+}