private void validateChrono(TemporalAccessor temporal){
  Objects.requireNonNull(temporal,"temporal");
  Chronology temporalChrono=temporal.query(TemporalQueries.chronology());
  if (temporalChrono != null && chrono.equals(temporalChrono) == false) {
    throw new DateTimeException("Chronology mismatch, expected: " + chrono.getId() + ", actual: "+ temporalChrono.getId());
  }
}

private void validateChrono ( TemporalAccessor temporal ) { Objects . requireNonNull ( temporal , "temporal" ) ; Chronology temporalChrono = temporal . query ( TemporalQueries . chronology ( ) ) ; if ( temporalChrono != null && chrono . equals ( temporalChrono ) == false ) { throw new DateTimeException ( "Chronology mismatch, expected: " + chrono . getId ( ) + ", actual: " + temporalChrono . getId ( ) ) ; } }
validates that the temporal has the correct chronology .
