Closed alexbudarov closed 4 years ago
Example of NamePattern with method does not show method implementation code. Why shouldn't we add implementation example, showing an idea of forming a non-trivial caption?
For example:
@NamePattern("#getCaption|gender,name") ... public String getCaption() { String prefix = ""; if (gender == Gender.MALE) { prefix = "Mr "; } else if (gender == Gender.FEMALE) { prefix = "Ms "; } return prefix + name; }
Environment
Description of the bug or enhancement
Example of NamePattern with method does not show method implementation code. Why shouldn't we add implementation example, showing an idea of forming a non-trivial caption?
For example: