code: LocalDate endDate() {
          int ordinal = ordinal(eraValue);
          JapaneseEra[] eras = values();
          if (ordinal >= eras.length - 1) {
              return LocalDate.MAX;
          }
          return eras[ordinal + 1].startDate().minusDays(1);
      }
docs: Returns the end date of the era.
  @return the end date