Skip to content

Commit 23401b5

Browse files
authored
删除无用条件
删除无用条件
1 parent a5d7c24 commit 23401b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hsweb-web-service/hsweb-web-service-simple/src/main/java/org/hsweb/web/service/impl/AbstractServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public InsertMapper<Po> getInsertMapper() {
6363
public void tryValidPo(Po data) {
6464
Set<ConstraintViolation<Object>> set = validator.validate(data);
6565
ValidateResults results = new ValidateResults();
66-
if (set.isEmpty()) {
66+
6767
for (ConstraintViolation<Object> violation : set) {
6868
results.addResult(violation.getPropertyPath().toString(), violation.getMessage());
6969
}
70-
}
70+
7171
if (!results.isSuccess())
7272
throw new ValidationException(results);
7373
}

0 commit comments

Comments
 (0)