// Generated by dagger.internal.codegen.ComponentProcessor (https://google.github.io/dagger).
package com.sample.sample.modules;

import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import okhttp3.Cache;
import okhttp3.OkHttpClient;

public final class AppModule_ProvidesOkHttpClientFactory implements Factory<OkHttpClient> {
  private final AppModule module;

  private final Provider<Cache> cacheProvider;

  public AppModule_ProvidesOkHttpClientFactory(AppModule module, Provider<Cache> cacheProvider) {
    assert module != null;
    this.module = module;
    assert cacheProvider != null;
    this.cacheProvider = cacheProvider;
  }

  @Override
  public OkHttpClient get() {
    return Preconditions.checkNotNull(
        module.providesOkHttpClient(cacheProvider.get()),
        "Cannot return null from a non-@Nullable @Provides method");
  }

  public static Factory<OkHttpClient> create(AppModule module, Provider<Cache> cacheProvider) {
    return new AppModule_ProvidesOkHttpClientFactory(module, cacheProvider);
  }

  /** Proxies {@link AppModule#providesOkHttpClient(Cache)}. */
  public static OkHttpClient proxyProvidesOkHttpClient(AppModule instance, Cache cache) {
    return instance.providesOkHttpClient(cache);
  }
}
