Skip to content

Commit

Permalink
Remove @Deprecated from javax version of DoubleCheck.lazy() as this…
Browse files Browse the repository at this point in the history
… can still

be used by the factory classes. A future change will re-add this `@Deprecated` once the factory classes have been switched to use `dagger.internal.Provider`

Fixes #4203.

RELNOTES=Fixes #4203. Removes `@Deprecated` annotation causing warnings
PiperOrigin-RevId: 599667182
  • Loading branch information
Chang-Eric authored and Dagger Team committed Jan 19, 2024
1 parent 983c4d1 commit 3cbc94a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion java/dagger/internal/DoubleCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public static <P extends Provider<T>, T> Lazy<T> lazy(P provider) {
* Legacy javax version of the method to support libraries compiled with an older version of
* Dagger. Do not use directly.
*/
@Deprecated
public static <P extends javax.inject.Provider<T>, T> Lazy<T> lazy(P provider) {
return lazy(asDaggerProvider(provider));
}
Expand Down

0 comments on commit 3cbc94a

Please sign in to comment.