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

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

There is a newer version: 2.45-kim-rc1
Show newest version
package dagger.hilt.processor.internal.root;

import java.lang.Override;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_AggregatedRootMetadata extends $AutoValue_AggregatedRootMetadata {
  private volatile RootType rootType;

  AutoValue_AggregatedRootMetadata(TypeElement aggregatingElement$, TypeElement rootElement$,
      TypeElement originatingRootElement$, TypeElement 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