Removing unnecessary SafeClosable requirement from DaggerSingletonObject

Test: presubmit
Bug: 361850561
Flag: EXEMPT dagger
Change-Id: I453159be83e92eee92f5a18cfe0d3ea9a3123f47
This commit is contained in:
Sunny Goyal committed 2024-10-12 01:26:50 -07:00
1 parent bb9300c7d5
commit bf9d047b53
3 files changed
+4 -14

No files matched your search

@@ -29,7 +29,7 @@ import java.util.function.Function;
* We should delete this class at the end and use @Inject to get dagger provided singletons.
*/
public class DaggerSingletonObject<T extends SafeCloseable> {
public class DaggerSingletonObject<T> {
private final Function<LauncherAppComponent, T> mFunction;
public DaggerSingletonObject(Function<LauncherAppComponent, T> function) {