use lambdas for logging

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-09-19 08:59:08 +00:00
parent a20035a3b6
commit 83d837dc39
1 changed files with 1 additions and 1 deletions

View 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) {