crossposting, <https://kotlinlang.slack.com/archiv...
# spring
t
crossposting, https://kotlinlang.slack.com/archives/C0B8MA7FA/p1551432870022200 the conclusion seems to be that while the interface declares (if we consider javadocs a declaration) the
value
parameter as nullable (https://github.com/spring-projects/spring-hateoas/blob/master/src/main/java/org/springframework/hateoas/server/mvc/UriComponentsContributor.java#L46) spring data commons declares the implementation (
HateoasSortHandlerMethodArgumentResolver
) as not nullable, therefore kotlin prevents to write something like
override fun enhance(builder: UriComponentsBuilder, parameter: MethodParameter, value: Any?)
. is it worth to create an issue?
c
Yes, if the implementation breaks behaviour documented in the interface, you definitely should file an issue.
h