Timeline for How do I avoid checking for nulls in Java?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 26, 2024 at 13:14 | comment | added | user85421 | no pattern matching needed if (obj instanceof Object) { ... } or if (obj instanceof SomeType) { ... } (but is that a better replacement for just a plain if (obj != null) ... ?!) | |
| S Apr 11, 2024 at 0:27 | history | answered | Larry Cable | CC BY-SA 4.0 | |
| S Apr 11, 2024 at 0:27 | history | made wiki | Post Made Community Wiki by Larry Cable |