@@ -1152,7 +1152,6 @@ public static ResolvableType forClass(Class<?> baseType, Class<?> implementation
11521152 * @see #forClassWithGenerics(Class, ResolvableType...)
11531153 */
11541154 public static ResolvableType forClassWithGenerics (Class <?> clazz , Class <?>... generics ) {
1155- Assert .notNull (clazz , "Class must not be null" );
11561155 Assert .notNull (generics , "Generics array must not be null" );
11571156 ResolvableType [] resolvableGenerics = new ResolvableType [generics .length ];
11581157 for (int i = 0 ; i < generics .length ; i ++) {
@@ -1289,7 +1288,6 @@ public static ResolvableType forField(Field field, int nestingLevel, @Nullable C
12891288 * @see #forConstructorParameter(Constructor, int, Class)
12901289 */
12911290 public static ResolvableType forConstructorParameter (Constructor <?> constructor , int parameterIndex ) {
1292- Assert .notNull (constructor , "Constructor must not be null" );
12931291 return forMethodParameter (new MethodParameter (constructor , parameterIndex ));
12941292 }
12951293
@@ -1307,7 +1305,6 @@ public static ResolvableType forConstructorParameter(Constructor<?> constructor,
13071305 public static ResolvableType forConstructorParameter (Constructor <?> constructor , int parameterIndex ,
13081306 Class <?> implementationClass ) {
13091307
1310- Assert .notNull (constructor , "Constructor must not be null" );
13111308 MethodParameter methodParameter = new MethodParameter (constructor , parameterIndex , implementationClass );
13121309 return forMethodParameter (methodParameter );
13131310 }
@@ -1319,7 +1316,6 @@ public static ResolvableType forConstructorParameter(Constructor<?> constructor,
13191316 * @see #forMethodReturnType(Method, Class)
13201317 */
13211318 public static ResolvableType forMethodReturnType (Method method ) {
1322- Assert .notNull (method , "Method must not be null" );
13231319 return forMethodParameter (new MethodParameter (method , -1 ));
13241320 }
13251321
@@ -1333,7 +1329,6 @@ public static ResolvableType forMethodReturnType(Method method) {
13331329 * @see #forMethodReturnType(Method)
13341330 */
13351331 public static ResolvableType forMethodReturnType (Method method , Class <?> implementationClass ) {
1336- Assert .notNull (method , "Method must not be null" );
13371332 MethodParameter methodParameter = new MethodParameter (method , -1 , implementationClass );
13381333 return forMethodParameter (methodParameter );
13391334 }
@@ -1347,7 +1342,6 @@ public static ResolvableType forMethodReturnType(Method method, Class<?> impleme
13471342 * @see #forMethodParameter(MethodParameter)
13481343 */
13491344 public static ResolvableType forMethodParameter (Method method , int parameterIndex ) {
1350- Assert .notNull (method , "Method must not be null" );
13511345 return forMethodParameter (new MethodParameter (method , parameterIndex ));
13521346 }
13531347
@@ -1363,7 +1357,6 @@ public static ResolvableType forMethodParameter(Method method, int parameterInde
13631357 * @see #forMethodParameter(MethodParameter)
13641358 */
13651359 public static ResolvableType forMethodParameter (Method method , int parameterIndex , Class <?> implementationClass ) {
1366- Assert .notNull (method , "Method must not be null" );
13671360 MethodParameter methodParameter = new MethodParameter (method , parameterIndex , implementationClass );
13681361 return forMethodParameter (methodParameter );
13691362 }
0 commit comments