com.google.gerrit.entities.AutoValue_PatchSetApprovals Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.entities;
import com.google.common.collect.ImmutableListMultimap;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.SuppressWarnings;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_PatchSetApprovals extends $AutoValue_PatchSetApprovals {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableListMultimap onlyNonCopied;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile ImmutableListMultimap onlyCopied;
AutoValue_PatchSetApprovals(ImmutableListMultimap all) {
super(all);
}
@Override
public ImmutableListMultimap onlyNonCopied() {
if (onlyNonCopied == null) {
synchronized (this) {
if (onlyNonCopied == null) {
onlyNonCopied = super.onlyNonCopied();
if (onlyNonCopied == null) {
throw new NullPointerException("onlyNonCopied() cannot return null");
}
}
}
}
return onlyNonCopied;
}
@Override
public ImmutableListMultimap onlyCopied() {
if (onlyCopied == null) {
synchronized (this) {
if (onlyCopied == null) {
onlyCopied = super.onlyCopied();
if (onlyCopied == null) {
throw new NullPointerException("onlyCopied() cannot return null");
}
}
}
}
return onlyCopied;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy