Timeline for What is the best way to know if all the variables in a Class are null?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 9, 2023 at 8:07 | comment | added | Holger |
This will always be false , as the array returned by getDeclaredMethods() never contains null . You’d have to actually invoke those methods if you want to check whether they return null , but mind that not every method is a getter.
|
|
Sep 16, 2021 at 14:22 | history | answered | lrkwz | CC BY-SA 4.0 |