public static void assertNotVoidType ( final Field field , Class < ? extends Annotation > annotation ) { if ( ( field . getClass ( ) . equals ( Void . class ) ) && ( field . getClass ( ) . equals ( Void . TYPE ) ) ) { throw annotation == null ? MESSAGES . fieldCannotBeOfPrimitiveOrVoidType ( field ) : MESSAGES . fieldCannotBeOfPrimitiveOrVoidType2 ( field , annotation ) ; } }
Asserts field isn t of void type .