优化代码。

This commit is contained in:
2023-01-04 14:57:26 +08:00
parent 76e8c9e610
commit 864ecf5188
2 changed files with 2 additions and 3 deletions

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