Daniel Rust
11/04/2019, 7:53 PM!!
over checkNotNull
?danny
11/04/2019, 9:14 PM!!
will throw an NPE without any context. Use require
and check
when validating preconditions, throwing IllegalArgument/StateException with a message of your choosing because you have external callers or want to carry more context with the messagedanny
11/04/2019, 9:15 PMrequire*
for incoming function argumentsdanny
11/04/2019, 9:17 PMghedeon
11/04/2019, 9:57 PMdanny
11/04/2019, 10:19 PMQuy D X Nguyen
11/07/2019, 3:32 AM