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

com.google.gerrit.server.config.AutoValue_ScheduleConfig Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.server.config;

import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.time.ZonedDateTime;
import java.util.Optional;
import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.Config;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_ScheduleConfig extends $AutoValue_ScheduleConfig {
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile Optional schedule;

  AutoValue_ScheduleConfig(Config config$, String section$, String subsection$, String keyInterval$,
      String keyStartTime$, ZonedDateTime now$) {
    super(config$, section$, subsection$, keyInterval$, keyStartTime$, now$);
  }

  @Override
  public Optional schedule() {
    if (schedule == null) {
      synchronized (this) {
        if (schedule == null) {
          schedule = super.schedule();
          if (schedule == null) {
            throw new NullPointerException("schedule() cannot return null");
          }
        }
      }
    }
    return schedule;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy