No need to abbreviate local var name.

This commit is contained in:
Gary Gregory 2021-02-07 10:21:15 -05:00
parent d526317006
commit 96d7d49f33
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}