42
42
*/
43
43
public interface TypeInformation <S > {
44
44
45
- TypeInformation <Collection > COLLECTION = ClassTypeInformation . COLLECTION ;
46
- TypeInformation <List > LIST = ClassTypeInformation . LIST ;
47
- TypeInformation <Set > SET = ClassTypeInformation . SET ;
48
- TypeInformation <Map > MAP = ClassTypeInformation . MAP ;
49
- TypeInformation <Object > OBJECT = ClassTypeInformation . OBJECT ;
45
+ @ SuppressWarnings ( "rawtypes" ) TypeInformation <Collection > COLLECTION = new ClassTypeInformation <>( Collection . class ) ;
46
+ @ SuppressWarnings ( "rawtypes" ) TypeInformation <List > LIST = new ClassTypeInformation <>( List . class ) ;
47
+ @ SuppressWarnings ( "rawtypes" ) TypeInformation <Set > SET = new ClassTypeInformation <>( Set . class ) ;
48
+ @ SuppressWarnings ( "rawtypes" ) TypeInformation <Map > MAP = new ClassTypeInformation <>( Map . class ) ;
49
+ TypeInformation <Object > OBJECT = new ClassTypeInformation <>( Object . class ) ;
50
50
51
51
/**
52
52
* Creates a new {@link TypeInformation} from the given {@link ResolvableType}.
@@ -55,7 +55,7 @@ public interface TypeInformation<S> {
55
55
* @return will never be {@literal null}.
56
56
* @since 3.0
57
57
*/
58
- public static TypeInformation <?> of (ResolvableType type ) {
58
+ static TypeInformation <?> of (ResolvableType type ) {
59
59
60
60
Assert .notNull (type , "Type must not be null" );
61
61
@@ -70,7 +70,7 @@ public static TypeInformation<?> of(ResolvableType type) {
70
70
* @return will never be {@literal null}.
71
71
* @since 3.0
72
72
*/
73
- public static <S > TypeInformation <S > of (Class <S > type ) {
73
+ static <S > TypeInformation <S > of (Class <S > type ) {
74
74
75
75
Assert .notNull (type , "Type must not be null" );
76
76
@@ -84,7 +84,7 @@ public static <S> TypeInformation<S> of(Class<S> type) {
84
84
* @return will never be {@literal null}.
85
85
* @since 3.0
86
86
*/
87
- public static TypeInformation <?> fromReturnTypeOf (Method method ) {
87
+ static TypeInformation <?> fromReturnTypeOf (Method method ) {
88
88
89
89
Assert .notNull (method , "Method must not be null" );
90
90
@@ -99,7 +99,7 @@ public static TypeInformation<?> fromReturnTypeOf(Method method) {
99
99
* @return will never be {@literal null}.
100
100
* @since 3.0
101
101
*/
102
- public static TypeInformation <?> fromReturnTypeOf (Method method , @ Nullable Class <?> type ) {
102
+ static TypeInformation <?> fromReturnTypeOf (Method method , @ Nullable Class <?> type ) {
103
103
104
104
ResolvableType intermediate = type == null ? ResolvableType .forMethodReturnType (method )
105
105
: ResolvableType .forMethodReturnType (method , type );
@@ -114,7 +114,7 @@ public static TypeInformation<?> fromReturnTypeOf(Method method, @Nullable Class
114
114
* @return will never be {@literal null}.
115
115
* @since 3.0
116
116
*/
117
- public static TypeInformation <?> fromMethodParameter (MethodParameter parameter ) {
117
+ static TypeInformation <?> fromMethodParameter (MethodParameter parameter ) {
118
118
return TypeInformation .of (ResolvableType .forMethodParameter (parameter ));
119
119
}
120
120
0 commit comments