4242 */
4343public interface TypeInformation <S > {
4444
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 ) ;
5050
5151 /**
5252 * Creates a new {@link TypeInformation} from the given {@link ResolvableType}.
@@ -55,7 +55,7 @@ public interface TypeInformation<S> {
5555 * @return will never be {@literal null}.
5656 * @since 3.0
5757 */
58- public static TypeInformation <?> of (ResolvableType type ) {
58+ static TypeInformation <?> of (ResolvableType type ) {
5959
6060 Assert .notNull (type , "Type must not be null" );
6161
@@ -70,7 +70,7 @@ public static TypeInformation<?> of(ResolvableType type) {
7070 * @return will never be {@literal null}.
7171 * @since 3.0
7272 */
73- public static <S > TypeInformation <S > of (Class <S > type ) {
73+ static <S > TypeInformation <S > of (Class <S > type ) {
7474
7575 Assert .notNull (type , "Type must not be null" );
7676
@@ -84,7 +84,7 @@ public static <S> TypeInformation<S> of(Class<S> type) {
8484 * @return will never be {@literal null}.
8585 * @since 3.0
8686 */
87- public static TypeInformation <?> fromReturnTypeOf (Method method ) {
87+ static TypeInformation <?> fromReturnTypeOf (Method method ) {
8888
8989 Assert .notNull (method , "Method must not be null" );
9090
@@ -99,7 +99,7 @@ public static TypeInformation<?> fromReturnTypeOf(Method method) {
9999 * @return will never be {@literal null}.
100100 * @since 3.0
101101 */
102- public static TypeInformation <?> fromReturnTypeOf (Method method , @ Nullable Class <?> type ) {
102+ static TypeInformation <?> fromReturnTypeOf (Method method , @ Nullable Class <?> type ) {
103103
104104 ResolvableType intermediate = type == null ? ResolvableType .forMethodReturnType (method )
105105 : ResolvableType .forMethodReturnType (method , type );
@@ -114,7 +114,7 @@ public static TypeInformation<?> fromReturnTypeOf(Method method, @Nullable Class
114114 * @return will never be {@literal null}.
115115 * @since 3.0
116116 */
117- public static TypeInformation <?> fromMethodParameter (MethodParameter parameter ) {
117+ static TypeInformation <?> fromMethodParameter (MethodParameter parameter ) {
118118 return TypeInformation .of (ResolvableType .forMethodParameter (parameter ));
119119 }
120120
0 commit comments