dagger.hilt.android.processor.internal.androidentrypoint.AutoValue_AndroidEntryPointMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hilt-compiler Show documentation
Show all versions of hilt-compiler Show documentation
A fast dependency injector for Android and Java.
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;
}
}