ghostwriter
ghostwriter copied to clipboard
Exclude class level variable
Excluding a class level variable is not possible and raises the following compiler error:
annotation type not applicable to this kind of declaration
@Exclude
^
public class FlawDetails {
@Exclude
private String comment;
Hi @otisonoza,
Thanks for letting me know! Indeed, that is a bug and not a feature. Will be fixed for the next release!
Status update:
- ghostwriter-api needs to be updated to allow the exclude annotation on fields as well (simple matter)
- field definition excludes are class definition local, so writing to a public field from a different class is a tricky case that needs some work