aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/commons/lang3/function
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2021-02-07 10:21:15 -0500
committerGary Gregory <garydgregory@gmail.com>2021-02-07 10:21:15 -0500
commit96d7d49f336a1ce561aae1803616c7a561acbeb5 (patch)
tree6fccabe4fb74a86b51e485f45e86fe0e735d4a39 /src/main/java/org/apache/commons/lang3/function
parentd52631700651ebc1ba3f96e92196e267e6d68fe6 (diff)
downloadapache-commons-lang-96d7d49f336a1ce561aae1803616c7a561acbeb5.tar.gz
No need to abbreviate local var name.
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/function')
-rwxr-xr-xsrc/main/java/org/apache/commons/lang3/function/Objects.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/apache/commons/lang3/function/Objects.java b/src/main/java/org/apache/commons/lang3/function/Objects.java
index b42e65e32..f172c8d81 100755
--- a/src/main/java/org/apache/commons/lang3/function/Objects.java
+++ b/src/main/java/org/apache/commons/lang3/function/Objects.java
@@ -156,10 +156,10 @@ public class Objects {
*/
public static <T, E extends Throwable> @Nonnull T requireNonNull(@Nullable T value, @Nonnull FailableSupplier<T, E> defaultValueSupplier) {
if (value == null) {
- final FailableSupplier<T, ?> supp = requireNonNull(defaultValueSupplier, "The supplier must not be null");
+ final FailableSupplier<T, ?> supplier = requireNonNull(defaultValueSupplier, "The supplier must not be null");
final T o;
try {
- o = supp.get();
+ o = supplier.get();
} catch (Throwable t) {
throw Failable.rethrow(t);
}