mirror of https://github.com/apache/poi.git
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:
parent
a20035a3b6
commit
83d837dc39
|
@ -52,7 +52,7 @@ import org.apache.poi.util.TempFile;
|
||||||
if (threshold >= 0 && entrySize >= threshold) {
|
if (threshold >= 0 && entrySize >= threshold) {
|
||||||
tempFile = TempFile.createTempFile("poi-zip-entry", ".tmp");
|
tempFile = TempFile.createTempFile("poi-zip-entry", ".tmp");
|
||||||
LOG.atInfo().log("created for temp file {} for zip entry {} of size {} bytes",
|
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);
|
IOUtils.copy(inp, tempFile);
|
||||||
} else {
|
} else {
|
||||||
if (entrySize < -1 || entrySize >= Integer.MAX_VALUE) {
|
if (entrySize < -1 || entrySize >= Integer.MAX_VALUE) {
|
||||||
|
|
Loading…
Reference in New Issue