优化代码。
parent
76e8c9e610
commit
864ecf5188
3
pom.xml
3
pom.xml
|
@ -9,8 +9,7 @@
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<name>plusone-validator</name>
|
<name>plusone-validator</name>
|
||||||
<!-- FIXME change it to the project's website -->
|
<url>http://zhouxy.xyz</url>
|
||||||
<url>http://www.example.com</url>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class ValueValidator<DTO, PROPERTY> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private <E extends RuntimeException> void withRule(Consumer<PROPERTY> rule) {
|
private void withRule(Consumer<PROPERTY> rule) {
|
||||||
this.rules.add(rule);
|
this.rules.add(rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue