From ec741b5a5f464115a90d9843e07cab46af31a8b8 Mon Sep 17 00:00:00 2001 From: Dagger Team Date: Thu, 7 Nov 2024 09:56:19 -0800 Subject: [PATCH] Clean up old eclipse workaround that should be resolved as of Eclipse 4.7 as per https://bugs.eclipse.org/bugs/show_bug.cgi?id=517710 RELNOTES=N/A PiperOrigin-RevId: 694154521 --- java/dagger/internal/DoubleCheck.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java/dagger/internal/DoubleCheck.java b/java/dagger/internal/DoubleCheck.java index 6f5f046d1da..af82b7a7b76 100644 --- a/java/dagger/internal/DoubleCheck.java +++ b/java/dagger/internal/DoubleCheck.java @@ -98,9 +98,7 @@ public static

, T> javax.inject.Provider p } /** Returns a {@link Lazy} that caches the value from the given provider. */ - // This method is declared this way instead of " Lazy lazy(Provider delegate)" - // to work around an Eclipse type inference bug: https://github.com/google/dagger/issues/949. - public static

, T> Lazy lazy(P provider) { + public static Lazy lazy(Provider provider) { if (provider instanceof Lazy) { @SuppressWarnings("unchecked") final Lazy lazy = (Lazy) provider;