jdk/src/share/classes/java/time/format/DateTimeFormatterBuilder.java
changeset 24986 81e3c2e485d4
parent 24256 da9a41004459
equal deleted inserted replaced
24985:61ec15d123c3 24986:81e3c2e485d4
  3281                 instantSecs = ldt.toEpochSecond(ZoneOffset.UTC);
  3281                 instantSecs = ldt.toEpochSecond(ZoneOffset.UTC);
  3282                 instantSecs += Math.multiplyExact(yearParsed / 10_000L, SECONDS_PER_10000_YEARS);
  3282                 instantSecs += Math.multiplyExact(yearParsed / 10_000L, SECONDS_PER_10000_YEARS);
  3283             } catch (RuntimeException ex) {
  3283             } catch (RuntimeException ex) {
  3284                 return ~position;
  3284                 return ~position;
  3285             }
  3285             }
  3286             int successPos = text.length();
  3286             int successPos = pos;
  3287             successPos = context.setParsedField(INSTANT_SECONDS, instantSecs, position, successPos);
  3287             successPos = context.setParsedField(INSTANT_SECONDS, instantSecs, position, successPos);
  3288             return context.setParsedField(NANO_OF_SECOND, nano, position, successPos);
  3288             return context.setParsedField(NANO_OF_SECOND, nano, position, successPos);
  3289         }
  3289         }
  3290 
  3290 
  3291         @Override
  3291         @Override