com.alibaba.dashscope.utils.AnnotationExclusionStrategy Maven / Gradle / Ivy
package com.alibaba.dashscope.utils;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
public class AnnotationExclusionStrategy implements ExclusionStrategy {
@Override
public boolean shouldSkipField(FieldAttributes f) {
return f.getAnnotation(GsonExclude.class) != null;
}
@Override
public boolean shouldSkipClass(Class> clazz) {
return false;
}
}