|
1 | 1 | /* |
2 | | - * Copyright 2002-2021 the original author or authors. |
| 2 | + * Copyright 2002-2022 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -71,7 +71,8 @@ public TemporalAccessorParser(Class<? extends TemporalAccessor> temporalAccessor |
71 | 71 | } |
72 | 72 |
|
73 | 73 | TemporalAccessorParser(Class<? extends TemporalAccessor> temporalAccessorType, DateTimeFormatter formatter, |
74 | | - @Nullable String[] fallbackPatterns, @Nullable Object source) { |
| 74 | + @Nullable String[] fallbackPatterns, @Nullable Object source) { |
| 75 | + |
75 | 76 | this.temporalAccessorType = temporalAccessorType; |
76 | 77 | this.formatter = formatter; |
77 | 78 | this.fallbackPatterns = fallbackPatterns; |
@@ -100,8 +101,8 @@ public TemporalAccessor parse(String text, Locale locale) throws ParseException |
100 | 101 | } |
101 | 102 | if (this.source != null) { |
102 | 103 | throw new DateTimeParseException( |
103 | | - String.format("Unable to parse date time value \"%s\" using configuration from %s", text, this.source), |
104 | | - text, ex.getErrorIndex(), ex); |
| 104 | + String.format("Unable to parse date time value \"%s\" using configuration from %s", text, this.source), |
| 105 | + text, ex.getErrorIndex(), ex); |
105 | 106 | } |
106 | 107 | // else rethrow original exception |
107 | 108 | throw ex; |
|
0 commit comments