# getting-started


03/01/2019, 9:25 AM
I have a java class
Copy code
public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodArgumentResolver
		implements UriComponentsContributor {
	public void enhance(UriComponentsBuilder builder, MethodParameter parameter, Object value) {...}
and I am trying to extend it in Kotlin.
Copy code
class Blabla : HateoasSortHandlerMethodArgumentResolver() {
     override fun enhance(builder: UriComponentsBuilder, parameter: MethodParameter, value: Any) {
		super.enhance(builder, parameter, value)
unfortunately, this fails at runtime because all parameters are nullable, so framework is passing nulls. Adding
makes kotlin compiler complaing about
override overrides nothing
. What can I do?