com.google.gerrit.entities.AutoValue_AccessSection Maven / Gradle / Ivy
package com.google.gerrit.entities;
import com.google.common.collect.ImmutableList;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Optional;
import java.util.regex.Pattern;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_AccessSection extends $AutoValue_AccessSection {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile Optional getNamePattern;
AutoValue_AccessSection(String name, ImmutableList permissions) {
super(name, permissions);
}
@Override
public Optional getNamePattern() {
if (getNamePattern == null) {
synchronized (this) {
if (getNamePattern == null) {
getNamePattern = super.getNamePattern();
if (getNamePattern == null) {
throw new NullPointerException("getNamePattern() cannot return null");
}
}
}
}
return getNamePattern;
}
}