public static void assertNotPrimitiveType ( final Field field , Class < ? extends Annotation > annotation ) { if ( field . getType ( ) . isPrimitive ( ) ) { throw annotation == null ? MESSAGES . fieldCannotBeOfPrimitiveOrVoidType ( field ) : MESSAGES . fieldCannotBeOfPrimitiveOrVoidType2 ( field , annotation ) ; } }
Asserts field is not of primitive type .