dagger.hilt.processor.internal.root.AutoValue_AggregatedRootMetadata 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.
package dagger.hilt.processor.internal.root;
import androidx.room.compiler.processing.XTypeElement;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.SuppressWarnings;
final class AutoValue_AggregatedRootMetadata extends $AutoValue_AggregatedRootMetadata {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile RootType rootType;
AutoValue_AggregatedRootMetadata(XTypeElement aggregatingElement$, XTypeElement rootElement$,
XTypeElement originatingRootElement$, XTypeElement rootAnnotation$,
boolean allowsSharingComponent$) {
super(aggregatingElement$, rootElement$, originatingRootElement$, rootAnnotation$, allowsSharingComponent$);
}
@Override
RootType rootType() {
if (rootType == null) {
synchronized (this) {
if (rootType == null) {
rootType = super.rootType();
if (rootType == null) {
throw new NullPointerException("rootType() cannot return null");
}
}
}
}
return rootType;
}
}