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

com.google.gerrit.entities.AutoValue_AccessSection Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy