MCPcopy Create free account
hub / github.com/diyhi/bbs / supports

Method supports

src/main/java/cms/validator/user/UserValidator.java:27–29  ·  view source on GitHub ↗
(Class<?> clazz)

Source from the content-addressed store, hash-verified

25
26
27 public boolean supports(Class<?> clazz) {//该校验器支持的目标类
28 return clazz.equals(User.class);
29 }
30
31 public void validate(Object obj, Errors errors) {//对目标类对象进行校验,错误记录在errors中
32 User user = (User) obj;

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected