The method accept(capture#1-of ? extends OBSRequest) in the type Consumer<capture#1-of ?…
- User
The method accept(capture#1-of ? extends OBSRequest) in the type Consumer<capture#1-of ? extends OBSRequest> is not applicable for the arguments (OBSRequest). It's happening on this line: callbacks.remove(data.get("requestId").toString()).getKey().accept(request); request is of type OBSRequest. What is happenign?
- Assistant
The error message suggests that there is a problem with using the method
accept(capture#1-of ? extends OBSRequest)in theConsumerclass. The method is not applicable for the argumentOBSRequest.This error occurs because the method
accept()in theConsumerclass is expecting an argument of type that extendsOBSRequest, but you are passing an object of typeOBSRequestitself.To resolve this issue, you need to make sure that the
accept()method is called with an appropriate argument type that extendsOBSRequest. It is difficult to provide a specific solution without having more context about the code and its intention. However, you may need to review the type constraints or the type hierarchy ofOBSRequestto ensure that you are using the correct types.