Compare commits

..

No commits in common. "8acec7446a9ef9799a1f902de7ca18d49fdf7b2f" and "7a3801affe56392faa7e8d61d92591b06cfcfe12" have entirely different histories.

2 changed files with 0 additions and 14 deletions

View File

@ -1,12 +0,0 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true

View File

@ -35,7 +35,6 @@ public class MapValidator {
this.rules.add(rule);
}
@SuppressWarnings("unchecked")
protected final <R> ObjectValidator<Map<String, Object>, R> ruleFor(String key) {
ObjectValidator<Map<String, Object>, R> validValueHolder = new ObjectValidator<>(map -> (R) map.get(key));
propertyValidators.add(validValueHolder);
@ -66,7 +65,6 @@ public class MapValidator {
return validValueHolder;
}
@SuppressWarnings("unchecked")
protected final <E> CollectionValidator<Map<String, Object>, E> ruleForCollection(String key) {
CollectionValidator<Map<String, Object>, E> validValueHolder = new CollectionValidator<>(m -> (Collection<E>) m.get(key));
propertyValidators.add(validValueHolder);