diff options
author | Gary Gregory <gardgregory@gmail.com> | 2021-09-03 10:17:53 -0400 |
---|---|---|
committer | Gary Gregory <gardgregory@gmail.com> | 2021-09-03 10:17:53 -0400 |
commit | 1e01f7eb64a57cfd56dd9183ddca63a34b6925af (patch) | |
tree | fd6c52221ae050bb08955f5acc0577368f744fde /src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | |
parent | 072fa707f7cd41a70bcec644e1b393e3955dcc75 (diff) | |
download | apache-commons-io-1e01f7eb64a57cfd56dd9183ddca63a34b6925af.tar.gz |
Use final and remove trailing whitespace.
Diffstat (limited to 'src/main/java/org/apache/commons/io/UncheckedIOExceptions.java')
-rw-r--r-- | src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java index 2baf06f0..f8f3ff7b 100644 --- a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java +++ b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java @@ -33,11 +33,11 @@ public class UncheckedIOExceptions { * <p> * This method exists because there is no String constructor in UncheckedIOException. * </p> - * + * * @param message the detail message. * @return a new UncheckedIOException. */ - public static UncheckedIOException create(Object message) { + public static UncheckedIOException create(final Object message) { final String string = Objects.toString(message); return new UncheckedIOException(string, new IOException(string)); } @@ -47,12 +47,12 @@ public class UncheckedIOExceptions { * <p> * This method exists because there is no String constructor in UncheckedIOException. * </p> - * + * * @param message the detail message. * @param e cause the {@code IOException}. * @return a new UncheckedIOException. */ - public static UncheckedIOException create(Object message, final IOException e) { + public static UncheckedIOException create(final Object message, final IOException e) { return new UncheckedIOException(Objects.toString(message), e); } |