Closed hantsy closed 4 days ago
I found a lot of codes like this: https://github.com/VAuthenticator/vauthenticator/blob/master/src/main/kotlin/com/vauthenticator/server/oauth2/authorizationservice/RedisOAuth2AuthorizationService.kt#L39 to check the method parameters.
Assert.notNull(....)
For Kotlin, if it is nullable, add a ? to the method parameter declaration, else it is with a not null constraint by default.
?
not null
I found a lot of codes like this: https://github.com/VAuthenticator/vauthenticator/blob/master/src/main/kotlin/com/vauthenticator/server/oauth2/authorizationservice/RedisOAuth2AuthorizationService.kt#L39 to check the method parameters.
For Kotlin, if it is nullable, add a
?
to the method parameter declaration, else it is with anot null
constraint by default.