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
The following commit(s) were added to refs/heads/master by this push: new eb119aa Inline single use local variable. eb119aa is described below commit eb119aaa711e8e1c205aa31fb5413936eaae34dc Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Tue Sep 7 08:51:01 2021 -0400 Inline single use local variable. --- src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | 3 +-- 1 file changed, 1 insertion(+), 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 f8f3ff7..00ae053 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))); } /**