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)
- Assistant
The error message suggests that there is a problem with the method
acceptwhich is being called with an argument of typeOBSRequest.The method
acceptis defined in theConsumerinterface and takes an argument of typecapture#1-of ? extends OBSRequest, but you are passing an argument of typeOBSRequest.The error occurs because
capture#1-of ? extends OBSRequestrepresents an unknown subtype ofOBSRequest, and it is not possible to assign an instance ofOBSRequestto a variable ofcapture#1-of ? extends OBSRequesttype.To fix this error, you need to make sure that the method
acceptis called with an argument that is compatible withcapture#1-of ? extends OBSRequest. This may require casting the argument to the appropriate subtype, or modifying the code to ensure that the argument matches the expected type.