private static void checkFieldsDefinitions ( SQLiteModelMethod method , Class < ? extends Annotation > annotation ) { List < String > includedFields = AnnotationUtility . extractAsStringArray ( method . getElement ( ) , annotation , AnnotationAttributeType . FIELDS ) ; List < String > excludedFields = AnnotationUtility . extractAsStringArray ( method . getElement ( ) , annotation , AnnotationAttributeType . EXCLUDED_FIELDS ) ; // both elements can not be defined if ( includedFields . size ( ) > 0 && excludedFields . size ( ) > 0 ) { throw ( new IncompatibleAttributesInAnnotationException ( method . getParent ( ) , method , method . getAnnotation ( annotation ) , AnnotationAttributeType . FIELDS , AnnotationAttributeType . EXCLUDED_FIELDS ) ) ; } }
Check fields definitions .