Code example for FieldAttributes

Methods: getAnnotation

0
@Component 
public class CircularReferencePrevention implements ExclusionStrategy {
 
	@Override 
	public boolean shouldSkipField(FieldAttributes f) {
		return f.getAnnotation(JsonExclude.class) != null;
	} 
 
	@Override 
	public boolean shouldSkipClass(Class<?> clazz) {
		return false; 
	} 
 
} 
Experience pair programming with AI  Get Codota for Java