I have this code:
MessageConsumer<String> handler = consumer.handler(handleBusRequest());
MessageConsumer<Object> handler2 = (MessageConsumer<String>) handler;
But cast it is not allowed. How should I do it?
I have this code:
MessageConsumer<String> handler = consumer.handler(handleBusRequest());
MessageConsumer<Object> handler2 = (MessageConsumer<String>) handler;
But cast it is not allowed. How should I do it?