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: spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,15 @@
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
packageorg.springframework.format;
17
18
18
19
importjava.lang.annotation.Annotation;
19
20
importjava.util.Set;
20
21
21
22
/**
22
-
* A factory that creates formatters to format values of fields annotated with a particular {@link Annotation}.
23
+
* A factory that creates formatters to format values of fields annotated with a particular
24
+
* {@link Annotation}.
23
25
*
24
26
* <p>For example, a {@code DateTimeFormatAnnotationFormatterFactory} might create a formatter
25
27
* that formats {@code Date} values set on fields annotated with {@code @DateTimeFormat}.
@@ -36,17 +38,21 @@ public interface AnnotationFormatterFactory<A extends Annotation> {
36
38
Set<Class<?>> getFieldTypes();
37
39
38
40
/**
39
-
* Get the Printer to print the value of a field of {@code fieldType} annotated with {@code annotation}.
40
-
* If the type <T> the printer accepts is not assignable to {@code fieldType}, a coercion from {@code fieldType} to <T> will be attempted before the Printer is invoked.
41
+
* Get the Printer to print the value of a field of {@code fieldType} annotated with
42
+
* {@code annotation}.
43
+
* <p>If the type T the printer accepts is not assignable to {@code fieldType}, a
44
+
* coercion from {@code fieldType} to T will be attempted before the Printer is invoked.
41
45
* @param annotation the annotation instance
42
46
* @param fieldType the type of field that was annotated
Copy file name to clipboardExpand all lines: spring-core/src/main/java/org/springframework/core/convert/support/ArrayToStringConverter.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2012 the original author or authors.
2
+
* Copyright 2002-2014 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.
@@ -27,7 +27,8 @@
27
27
28
28
/**
29
29
* Converts an Array to a comma-delimited String.
30
-
* This implementation first adapts the source Array to a List, then delegates to {@link CollectionToStringConverter} to perform the target String conversion.
30
+
* This implementation first adapts the source Array to a List,
31
+
* then delegates to {@link CollectionToStringConverter} to perform the target String conversion.
31
32
*
32
33
* @author Keith Donald
33
34
* @since 3.0
@@ -36,10 +37,12 @@ final class ArrayToStringConverter implements ConditionalGenericConverter {
0 commit comments