diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-12-17 21:03:27 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-12-17 21:03:27 +0000 |
commit | 0e0d1d56da7d3ad69e80dae199a7f9741b385bb9 (patch) | |
tree | 87af37de9c0f68629b2a91d71f983a73222dd515 /src/java/org/apache/poi/poifs | |
parent | f9387f37b33e733c1f6c69c520c223bfc9dda245 (diff) | |
download | poi-0e0d1d56da7d3ad69e80dae199a7f9741b385bb9.tar.gz poi-0e0d1d56da7d3ad69e80dae199a7f9741b385bb9.zip |
avoid string concats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884572 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs')
-rw-r--r-- | src/java/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.java | 2 | ||||
-rw-r--r-- | src/java/org/apache/poi/poifs/crypt/standard/StandardEncryptor.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.java b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.java index e00b1c2bac..d5ea57a655 100644 --- a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.java +++ b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.java @@ -324,7 +324,7 @@ public abstract class ChunkedCipherOutputStream extends FilterOutputStream { } if (!fileOut.delete()) { - LOG.log(POILogger.ERROR, "Can't delete temporary encryption file: "+fileOut); + LOG.log(POILogger.ERROR, "Can't delete temporary encryption file: ", fileOut); } } catch (IOException e) { throw new EncryptedDocumentException(e); diff --git a/src/java/org/apache/poi/poifs/crypt/standard/StandardEncryptor.java b/src/java/org/apache/poi/poifs/crypt/standard/StandardEncryptor.java index 2dfbc1f547..90d1dc0757 100644 --- a/src/java/org/apache/poi/poifs/crypt/standard/StandardEncryptor.java +++ b/src/java/org/apache/poi/poifs/crypt/standard/StandardEncryptor.java @@ -193,7 +193,7 @@ public class StandardEncryptor extends Encryptor { IOUtils.copy(fis, leos); } if (!fileOut.delete()) { - logger.log(POILogger.ERROR, "Can't delete temporary encryption file: "+fileOut); + logger.log(POILogger.ERROR, "Can't delete temporary encryption file: ", fileOut); } leos.close(); |