Update MySerializationUtils.java

This commit is contained in:
Amitabh Tiwari 2021-12-27 19:28:25 +05:30
parent 2cec538ac1
commit 00e2fed473
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,10 @@ public class MySerializationUtils {
continue; continue;
} }
Class<?> fieldType = field.getType(); Class<?> fieldType = field.getType();
serializable = isSerializable(fieldType); if (!isSerializable(fieldType)) {
return false;
}
} }
return serializable; return true;
} }
} }