Compact Attribute Declaration In Java 📎
public class VerboseClass {
private String firstName;
private String lastName;
private String description;
}
Attributes of the same type and visibility can be declared in a more compact manner:
public class CompactClass {
private String firstName,lastName,description;
}
This works in most cases - except you want to annotate each attribute in different way....