You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.context/src/main/java/org/springframework/context/event/GenericApplicationListenerAdapter.java
Copy file name to clipboardExpand all lines: org.springframework.context/src/main/java/org/springframework/ui/format/support/GenericFormatterRegistry.java
+14-69Lines changed: 14 additions & 69 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,6 @@
17
17
packageorg.springframework.ui.format.support;
18
18
19
19
importjava.lang.annotation.Annotation;
20
-
importjava.lang.reflect.ParameterizedType;
21
-
importjava.lang.reflect.Type;
22
-
importjava.lang.reflect.TypeVariable;
23
20
importjava.text.ParseException;
24
21
importjava.util.LinkedList;
25
22
importjava.util.Locale;
@@ -182,18 +179,20 @@ public GenericFormatterRegistry clone() {
if (!this.conversionService.canConvert(formattedObjectType, type)) {
187
-
thrownewIllegalArgumentException("Unable to register Formatter " + formatter + " for type [" + type.getName() + "]; not able to convert from [" + formattedObjectType.getName() + "] to parse");
184
+
thrownewIllegalArgumentException("Unable to register Formatter " + formatter + " for type [" +
185
+
type.getName() + "]; not able to convert from [" + formattedObjectType.getName() + "] to parse");
188
186
}
189
187
if (!this.conversionService.canConvert(type, formattedObjectType)) {
190
-
thrownewIllegalArgumentException("Unable to register Formatter " + formatter + " for type [" + type.getName() + "]; not able to convert to [" + formattedObjectType.getName() + "] to format");
188
+
thrownewIllegalArgumentException("Unable to register Formatter " + formatter + " for type [" +
189
+
type.getName() + "]; not able to convert to [" + formattedObjectType.getName() + "] to format");
191
190
}
192
191
this.typeFormatters.put(type, formatter);
193
192
}
194
193
195
194
public <T> voidaddFormatterByType(Formatter<T> formatter) {
0 commit comments