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.10.0-rc4
Show newest version
package com.google.gerrit.server.config;

import java.lang.Override;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.Optional;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.Config;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_ScheduleConfig extends $AutoValue_ScheduleConfig {
  private 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