This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git

commit 282b9f97e04d78e4df1d085716af71154b00caed
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 25 14:55:53 2021 -0400

    Formatting.
---
 .../org/apache/commons/io/output/LockableFileWriter.java     | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java 
b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
index 418424d..75a0c3c 100644
--- a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
+++ b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
@@ -228,12 +228,10 @@ public class LockableFileWriter extends Writer {
      */
     private void testLockDir(final File lockDir) throws IOException {
         if (!lockDir.exists()) {
-            throw new IOException(
-                    "Could not find lockDir: " + lockDir.getAbsolutePath());
+            throw new IOException("Could not find lockDir: " + 
lockDir.getAbsolutePath());
         }
         if (!lockDir.canWrite()) {
-            throw new IOException(
-                    "Could not write to lockDir: " + 
lockDir.getAbsolutePath());
+            throw new IOException("Could not write to lockDir: " + 
lockDir.getAbsolutePath());
         }
     }
 
@@ -245,8 +243,7 @@ public class LockableFileWriter extends Writer {
     private void createLock() throws IOException {
         synchronized (LockableFileWriter.class) {
             if (!lockFile.createNewFile()) {
-                throw new IOException("Can't write file, lock " +
-                        lockFile.getAbsolutePath() + " exists");
+                throw new IOException("Can't write file, lock " + 
lockFile.getAbsolutePath() + " exists");
             }
             lockFile.deleteOnExit();
         }
@@ -265,8 +262,7 @@ public class LockableFileWriter extends Writer {
     private Writer initWriter(final File file, final Charset charset, final 
boolean append) throws IOException {
         final boolean fileExistedAlready = file.exists();
         try {
-            return new OutputStreamWriter(new 
FileOutputStream(file.getAbsolutePath(), append),
-                                          Charsets.toCharset(charset));
+            return new OutputStreamWriter(new 
FileOutputStream(file.getAbsolutePath(), append), Charsets.toCharset(charset));
 
         } catch (final IOException | RuntimeException ex) {
             FileUtils.deleteQuietly(lockFile);

Reply via email to