I have this method:
def find[T](foo: Foo) = {
// some code
objectmapper.readValue(stringPayload, classOf[T])
}
I have returned:
scala class type required but T found objectMapper
I have read that the reason is that T is not a class type, but a type parameter.
I haven't understand how to resolve it.
Can you help me?
Thanks