public static void assertNoPrimitiveParameters ( final Method method , Class < ? extends Annotation > annotation ) { for ( Class < ? > type : method . getParameterTypes ( ) ) { if ( type . isPrimitive ( ) ) { throw annotation == null ? MESSAGES . methodCannotDeclarePrimitiveParameters ( method ) : MESSAGES . methodCannotDeclarePrimitiveParameters2 ( method , annotation ) ; } } }
Asserts method don t declare primitive parameters .