I would like to answer the question in my topic " Force default validation even without annotation
but am not allowed to do. I always get the message: “Sorry, new users can only mention 2 users in a post.” when trying to post my reply
You probably forgot to format your code properly, and annotations starting with @
are getting detected as user mentions.
Use the button with the symbols </>
in the text editor in order to format code.
Alternatively, you can use markdown. Put a line with three backticks (```) before your code and another one after your code, like this:
```
public class MyCode {
@NotNull
private String foo;
@NotNull
private String bar;
@NotNull
private String foobar;
}
```
EDIT: And if you want to mention annotations inline, surround them with one backtick (`):
This is an example mentioning `@Indexed`, the best annotation ever.
1 Like
Thanks, you were right. Fixed it, removed “@” from the constraints I wanted to name
Thank you for the clarification. I also had this problem, but now everything is resolved.:)))