rethianita / spring-book

Undocumented constructor found JAVA-D1002
Documentation
Minor
2 years ago2 years old
Consider adding a doc comment for User
38  public User() {
39  }
40
41  public User(String username, String password) {42    this.username = username;43    this.password = password;44  }45
46  @Override
47  public boolean isAccountNonExpired() {
Consider adding a doc comment for User
35  private String fullName;
36  private Set<Role> authorities = new HashSet<>();
37
38  public User() {39  }40
41  public User(String username, String password) {
42    this.username = username;
Consider adding a doc comment for NotFoundException
 8    super(message);
 9  }
10
11  public NotFoundException(Class<?> clazz, long id) {12    super(String.format("Entity %s with id %d not found", clazz.getSimpleName(), id));13  }14
15  public NotFoundException(Class<?> clazz, String id) {
16    super(String.format("Entity %s with id %s not found", clazz.getSimpleName(), id));
Consider adding a doc comment for NotFoundException
16    super(String.format("Entity %s with id %s not found", clazz.getSimpleName(), id));
17  }
18
19  public NotFoundException(Class<?> clazz, ObjectId id) {20    super(String.format("Entity %s with id %s not found", clazz.getSimpleName(), id.toString()));21  }22
23}
Consider adding a doc comment for NotFoundException
12    super(String.format("Entity %s with id %d not found", clazz.getSimpleName(), id));
13  }
14
15  public NotFoundException(Class<?> clazz, String id) {16    super(String.format("Entity %s with id %s not found", clazz.getSimpleName(), id));17  }18
19  public NotFoundException(Class<?> clazz, ObjectId id) {
20    super(String.format("Entity %s with id %s not found", clazz.getSimpleName(), id.toString()));