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

dagger.hilt.processor.internal.root.AutoValue_AggregatedRootMetadata Maven / Gradle / Ivy

The newest version!
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy