I'm a little new to the Java 5 annotations and I'm curious if either of these are possible:
This annotation would generate a simple getter and setter for you.
@attribute
private String var = "";
The @NotNull
annotation indicates that a variable connot be null so you don't have to write that boilerplate code every time.
/*
* @param s @NotNull
*/
public void setString(String s){
...
}
Will either of these work? They seem like the first things I would write annotations for if I could. Since I don't see much about these when I read the docs I'm assuming that it's not really what annotations are about. Any direction here would be appreciated.