rrader
11/22/2018, 11:06 AMdiesieben07
11/22/2018, 11:08 AMString
, which cannot be null.null
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
annotationdiesieben07
11/22/2018, 11:30 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?
Validation and type-system are different thingsin this case they are the same, both do validation
@NotNull
can return all arguments that violate contract