Skip to content

Commit ec741b5

Browse files
java-team-github-botDagger Team
authored and
Dagger Team
committed
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
1 parent 6acd5b7 commit ec741b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/dagger/internal/DoubleCheck.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public static <P extends javax.inject.Provider<T>, T> javax.inject.Provider<T> p
9898
}
9999

100100
/** Returns a {@link Lazy} that caches the value from the given provider. */
101-
// This method is declared this way instead of "<T> Lazy<T> lazy(Provider<T> delegate)"
102-
// to work around an Eclipse type inference bug: https://github.com/google/dagger/issues/949.
103-
public static <P extends Provider<T>, T> Lazy<T> lazy(P provider) {
101+
public static <T> Lazy<T> lazy(Provider<T> provider) {
104102
if (provider instanceof Lazy) {
105103
@SuppressWarnings("unchecked")
106104
final Lazy<T> lazy = (Lazy<T>) provider;

0 commit comments

Comments
 (0)