File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
databricks-sdk-java/src/main/java/com/databricks/sdk/core Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ public CliTokenSource(
4848 * @throws DateTimeParseException if the input string cannot be parsed
4949 */
5050 static Instant parseExpiry (String expiry ) {
51- DateTimeParseException lastException = null ;
51+ DateTimeParseException parseException ;
5252 try {
5353 return OffsetDateTime .parse (expiry ).toInstant ();
5454 } catch (DateTimeParseException e ) {
55- lastException = e ;
55+ parseException = e ;
5656 }
5757
5858 String multiplePrecisionPattern =
@@ -65,10 +65,11 @@ static Instant parseExpiry(String expiry) {
6565 LocalDateTime dateTime = LocalDateTime .parse (expiry , formatter );
6666 return dateTime .atZone (ZoneId .systemDefault ()).toInstant ();
6767 } catch (DateTimeParseException e ) {
68- lastException = e ;
68+ parseException . addSuppressed ( e ) ;
6969 }
7070 }
71- throw lastException ;
71+
72+ throw parseException ;
7273 }
7374
7475 private String getProcessStream (InputStream stream ) throws IOException {
You can’t perform that action at this time.
0 commit comments