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

dagger.hilt.android.processor.internal.androidentrypoint.AutoValue_AndroidEntryPointMetadata Maven / Gradle / Ivy

The newest version!
package dagger.hilt.android.processor.internal.androidentrypoint;

import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.concurrent.LazyInit;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.TypeName;
import java.lang.Override;
import java.lang.SuppressWarnings;
import java.util.Optional;

final class AutoValue_AndroidEntryPointMetadata extends $AutoValue_AndroidEntryPointMetadata {
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile AndroidEntryPointMetadata rootMetadata;

  AutoValue_AndroidEntryPointMetadata(XTypeElement element$, XTypeElement baseElement$,
      ClassName generatedClassName$, boolean requiresBytecodeInjection$,
      AndroidEntryPointMetadata.AndroidType androidType$,
      Optional baseMetadata$,
      ImmutableSet installInComponents$, TypeName componentManager$,
      Optional componentManagerInitArgs$) {
    super(element$, baseElement$, generatedClassName$, requiresBytecodeInjection$, androidType$, baseMetadata$, installInComponents$, componentManager$, componentManagerInitArgs$);
  }

  @Override
  public AndroidEntryPointMetadata rootMetadata() {
    if (rootMetadata == null) {
      synchronized (this) {
        if (rootMetadata == null) {
          rootMetadata = super.rootMetadata();
          if (rootMetadata == null) {
            throw new NullPointerException("rootMetadata() cannot return null");
          }
        }
      }
    }
    return rootMetadata;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy