This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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