feat:格式化代码

This commit is contained in:
wangyu 2021-09-26 11:35:55 +08:00
parent 56863ad880
commit 2597252b81

View File

@ -81,8 +81,11 @@ public enum ValidationCandidate {
* @return 结果
*/
public static List<BeanValidation> produce(MergedAnnotations annotations) {
return Arrays.stream(values()).flatMap(candidate -> candidate.annotations.stream().map(annotations::get)
.filter(MergedAnnotation::isPresent).map(candidate::produce)
return Arrays.stream(values())
.flatMap(candidate -> candidate.annotations.stream()
.map(annotations::get)
.filter(MergedAnnotation::isPresent)
.map(candidate::produce)
).collect(Collectors.toList());
}