]> source.dussan.org Git - poi.git/commitdiff
use lambdas for logging
authorPJ Fanning <fanningpj@apache.org>
Sun, 19 Sep 2021 08:59:08 +0000 (08:59 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 19 Sep 2021 08:59:08 +0000 (08:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893433 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java

index acca8d0a09ddbe2e6d8b7dc7696ae709ab43db52..6c62e5c74db295bc83e494a69f05ea305a710686 100644 (file)
@@ -52,7 +52,7 @@ import org.apache.poi.util.TempFile;
         if (threshold >= 0 && entrySize >= threshold) {
             tempFile = TempFile.createTempFile("poi-zip-entry", ".tmp");
             LOG.atInfo().log("created for temp file {} for zip entry {} of size {} bytes",
-                    tempFile.getAbsolutePath(), entry.getName(), entrySize);
+                    () -> tempFile.getAbsolutePath(), () -> entry.getName(), () -> entrySize);
             IOUtils.copy(inp, tempFile);
         } else {
             if (entrySize < -1 || entrySize >= Integer.MAX_VALUE) {