Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class ExclusionStrategyImpl implements ExclusionStrategy {
private final Class<?> classTypeToSkip;
public ExclusionStrategyImpl(Class<?> classTypeToSkip) {
this.classTypeToSkip = classTypeToSkip;
}
@Override
public boolean shouldSkipClass(Class<?> claz) {
return classTypeToSkip == claz;
}
@Override
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.