All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dagger.internal.codegen.ProcessingEnvironmentModule_SourceVersionFactory Maven / Gradle / Ivy

There is a newer version: 2.54
Show newest version
package dagger.internal.codegen;

import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.annotation.Generated;
import javax.annotation.processing.ProcessingEnvironment;
import javax.inject.Provider;
import javax.lang.model.SourceVersion;

@DaggerGenerated
@Generated(
    value = "dagger.internal.codegen.ComponentProcessor",
    comments = "https://dagger.dev"
)
@SuppressWarnings({
    "unchecked",
    "rawtypes"
})
public final class ProcessingEnvironmentModule_SourceVersionFactory implements Factory {
  private final Provider processingEnvironmentProvider;

  public ProcessingEnvironmentModule_SourceVersionFactory(
      Provider processingEnvironmentProvider) {
    this.processingEnvironmentProvider = processingEnvironmentProvider;
  }

  @Override
  public SourceVersion get() {
    return sourceVersion(processingEnvironmentProvider.get());
  }

  public static ProcessingEnvironmentModule_SourceVersionFactory create(
      Provider processingEnvironmentProvider) {
    return new ProcessingEnvironmentModule_SourceVersionFactory(processingEnvironmentProvider);
  }

  public static SourceVersion sourceVersion(ProcessingEnvironment processingEnvironment) {
    return Preconditions.checkNotNullFromProvides(ProcessingEnvironmentModule.sourceVersion(processingEnvironment));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy