Leon K
12/05/2019, 4:11 PMrequire
and requireNotNull
? currently afaik it always throws an IllegalArgumentException
Stephan Schroeder
12/05/2019, 4:25 PMZach Klippenstein (he/him) [MOD]
12/05/2019, 6:01 PMrequire(NotNull)
throws IllegalArgumentException
, check(NotNull)
throws IllegalStateException
, if you want something else just write an if statement and throw an exception, it’s barely even boilerplate.