rrader
11/22/2018, 11:06 AMdiesieben07
11/22/2018, 11:08 AMString
, which cannot be null.diesieben07
11/22/2018, 11:09 AMnull
to end up in a property at all, the property must have a nullable type. Hacking around with disabling the assertions is a terrible idea. You will receive random NullPointerExceptions
in places. The assertions have a reason...rrader
11/22/2018, 11:20 AM@NotNull
annotationrrader
11/22/2018, 11:21 AMdiesieben07
11/22/2018, 11:30 AMdiesieben07
11/22/2018, 11:30 AMdiesieben07
11/22/2018, 11:31 AMrrader
11/22/2018, 11:54 AMThe library checks the types reported by Kotlin reflection.Why? Why just not to pass them to constructor and check the exception?
rrader
11/22/2018, 11:55 AMValidation and type-system are different thingsin this case they are the same, both do validation
rrader
11/22/2018, 12:01 PM@NotNull
can return all arguments that violate contract