Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class ExclusionStrategyImpl implements ExclusionStrategy {
private final Class<?> classTypeToSkip;
public ExclusionStrategyImpl(Class<?> classTypeToSkip) {
this.classTypeToSkip = classTypeToSkip;
public boolean shouldSkipClass(Class<?> claz) {
return classTypeToSkip == claz;
public boolean shouldSkipField(FieldAttributes fa) {
return fa.getAnnotation(Deprecated.class) !=null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.