Closed GoogleCodeExporter closed 9 years ago
public class YourAnnotationExclusionStrategy implements ExclusionStrategy {
public boolean shouldSkipClass(Class<?> clazz) {return false;}
public boolean shouldSkipField(FieldAttributes f) {return f.getAnnotation(YourAnnotation.class) != null;}
}
GsonBuilder().setExclusionStrategies(new YourAnnotationExclusionStrategy(), ...
Original comment by spdenne
on 13 Jun 2012 at 8:36
Let me know if there's action we should be taking here.
Original comment by limpbizkit
on 30 Jun 2012 at 3:09
Original issue reported on code.google.com by
tomasz.b...@pragmatists.pl
on 8 Jun 2012 at 12:41