Skip to content
Snippets Groups Projects

fix validator in java 17

Merged Piotr Gawron requested to merge bugfix/ci-issues into master
2 files
+ 12
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -205,12 +205,14 @@ public class ObjectValidator {
@Override
public void doWith(final Field arg0) {
try {
// skip static
if (java.lang.reflect.Modifier.isStatic(arg0.getModifiers())) {
return;
}
arg0.setAccessible(true);
Object property = arg0.get(object);
if (isIgnoredClass(arg0.getType())) {
// skip
} else if (java.lang.reflect.Modifier.isStatic(arg0.getModifiers())) {
// skip static
} else if (property == null
|| property instanceof String
|| property instanceof Double
Loading