Fix unexpected NumberFormatException in Durations.parse() by replacing with documented thrown ParseException.
This fixes parsing of invalid second value long to throw the correct exception. Most users should already be handling ParseExceptions e.g. for invalid nanos PiperOrigin-RevId: 686281774pull/18839/head
parent
3b2a6081eb
commit
ee5aa499af
1 changed files with 6 additions and 1 deletions
Loading…
Reference in new issue