@FieldNameConstants : add Prefix/Suffix

8 views
Skip to first unread message

lemioh

unread,
Nov 18, 2021, 10:20:53 AM11/18/21
to Project Lombok
For example:
@FieldNameConstants(prefix="ROLE")
public class Role {
private String USER,ADMIN;
}

will generate    
public static final String USER= "ROLE_USER";
public static final String ADMIN= "ROLE_ADMIN";
Reply all
Reply to author
Forward
0 new messages