Removing unnecessary SafeClosable requirement from DaggerSingletonObject

Test: presubmit
Bug: 361850561
Flag: EXEMPT dagger
Change-Id: I453159be83e92eee92f5a18cfe0d3ea9a3123f47
This commit is contained in:
Sunny Goyal
2024-10-11 13:04:18 -07:00
parent bb9300c7d5
commit bf9d047b53
3 changed files with 4 additions and 14 deletions
@@ -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) {