You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/09/07 12:51:31 UTC

[commons-io] branch master updated: Revert "Inline single use local variable."

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 04d3c37  Revert "Inline single use local variable."
04d3c37 is described below

commit 04d3c37897323b077db2817ac52832721bab5668
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 7 08:51:20 2021 -0400

    Revert "Inline single use local variable."
    
    This reverts commit eb119aaa711e8e1c205aa31fb5413936eaae34dc.
---
 src/main/java/org/apache/commons/io/UncheckedIOExceptions.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java
index 00ae053..f8f3ff7 100644
--- a/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java
+++ b/src/main/java/org/apache/commons/io/UncheckedIOExceptions.java
@@ -38,7 +38,8 @@ public class UncheckedIOExceptions {
      * @return a new UncheckedIOException.
      */
     public static UncheckedIOException create(final Object message) {
-        return new UncheckedIOException(Objects.toString(message), new IOException(Objects.toString(message)));
+        final String string = Objects.toString(message);
+        return new UncheckedIOException(string, new IOException(string));
     }
 
     /**