diff options
author | Gary Gregory <gardgregory@gmail.com> | 2021-09-07 08:51:01 -0400 |
---|---|---|
committer | Gary Gregory <gardgregory@gmail.com> | 2021-09-07 08:51:01 -0400 |
commit | eb119aaa711e8e1c205aa31fb5413936eaae34dc (patch) | |
tree | aec3aa461249501898b3393aac60a020d3b7e308 /src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | |
parent | b048a59a6e351ef44521ad770fd39afa73639632 (diff) | |
download | apache-commons-io-eb119aaa711e8e1c205aa31fb5413936eaae34dc.tar.gz |
Inline single use local variable.
Diffstat (limited to 'src/main/java/org/apache/commons/io/UncheckedIOExceptions.java')
-rw-r--r-- | src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java index f8f3ff7b..00ae053d 100644 --- a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java +++ b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java @@ -38,8 +38,7 @@ public class UncheckedIOExceptions { * @return a new UncheckedIOException. */ public static UncheckedIOException create(final Object message) { - final String string = Objects.toString(message); - return new UncheckedIOException(string, new IOException(string)); + return new UncheckedIOException(Objects.toString(message), new IOException(Objects.toString(message))); } /** |