优化代码。

0.4.x
ZhouXY108 2023-01-04 14:57:26 +08:00
parent 76e8c9e610
commit 864ecf5188
2 changed files with 2 additions and 3 deletions

View File

@ -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>

View File

@ -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);
}