private boolean keepProperty ( BeanPropertyWriter beanPropertyWriter ) { if ( beanPropertyWriter . getAnnotation ( JsonProperty . class ) != null ) { return true ; } for ( Class < ? extends Annotation > annotation : RIAK_ANNOTATIONS ) { if ( beanPropertyWriter . getAnnotation ( annotation ) != null ) { return false ; } } return true ; }
Checks if the property has any of the Riak annotations on it or the Jackson JsonProperty annotation .