@Test public void shouldIgnoreMethodsAnnotatedWithJsonIgnore() throws NoSuchMethodException { final AnnotatedMethod method = method("shouldBeIgnored"); assertThat(converter.ignore(method, null, "property", Collections.emptySet())).isTrue(); }
@Override protected boolean ignore(final Annotated member, final XmlAccessorType xmlAccessorTypeAnnotation, final String propName, final Set<String> propertiesToIgnore) { final JsonIgnore ignore = member.getAnnotation(JsonIgnore.class); if (ignore != null && !ignore.value()) { return false; } return super.ignore(member, xmlAccessorTypeAnnotation, propName, propertiesToIgnore); }
ModelConverter extends ModelResolver { @Override protected boolean ignore(final Annotated member, final XmlAccessorType xmlAccessorTypeAnnotation, final String propName, final Set<String> propertiesToIgnore) { final JsonIgnore ignore = member.getAnnotation(JsonIgnore.class); if (ignore != null && !ignore.value()) { return false; } return super.ignore(member, xmlAccessorTypeAnnotation, propName, propertiesToIgnore); } }
ModelConverter extends ModelResolver { @Override protected boolean ignore(final Annotated member, final XmlAccessorType xmlAccessorTypeAnnotation, final String propName, final Set<String> propertiesToIgnore) { final JsonIgnore ignore = member.getAnnotation(JsonIgnore.class); if (ignore != null && !ignore.value()) { return false; } return super.ignore(member, xmlAccessorTypeAnnotation, propName, propertiesToIgnore); } ModelConverter(); }
ModelConverter extends ModelResolver { @Override protected boolean ignore(final Annotated member, final XmlAccessorType xmlAccessorTypeAnnotation, final String propName, final Set<String> propertiesToIgnore) { final JsonIgnore ignore = member.getAnnotation(JsonIgnore.class); if (ignore != null && !ignore.value()) { return false; } return super.ignore(member, xmlAccessorTypeAnnotation, propName, propertiesToIgnore); } ModelConverter();  }
ModelConverter extends ModelResolver { @Override protected boolean ignore(final Annotated member, final XmlAccessorType xmlAccessorTypeAnnotation, final String propName, final Set<String> propertiesToIgnore) { final JsonIgnore ignore = member.getAnnotation(JsonIgnore.class); if (ignore != null && !ignore.value()) { return false; } return super.ignore(member, xmlAccessorTypeAnnotation, propName, propertiesToIgnore); } ModelConverter();   }