forked from plusone/plusone-validator
优化代码。
This commit is contained in:
3
pom.xml
3
pom.xml
@@ -9,8 +9,7 @@
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
|
||||
<name>plusone-validator</name>
|
||||
<!-- FIXME change it to the project's website -->
|
||||
<url>http://www.example.com</url>
|
||||
<url>http://zhouxy.xyz</url>
|
||||
|
||||
<properties>
|
||||
<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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user