Reports incorrect WebSocket methods annotated with @OnMessage.

This annotation marks methods that handle incoming WebSocket messages. Each WebSocket endpoint can have only one message-handling method for every WebSocket message format: text, binary, and pong. Methods with the @OnMessage annotation are allowed to have the following set of parameters in any order:

If the method returns a value, the WebSocket runtime will interpret it as a message to return to the peer. The allowed return types are String, ByteBuffer, byte[], any Java primitive or class equivalent, and anything for which there is an encoder. If the method returns a Java primitive value, the implementation must construct the text message to send using the standard Java string representation of the Java primitive unless the developer provided an encoder for the type configured for this endpoint, in which case that encoder must be used. If the method returns a class equivalent of a Java primitive, the implementation must construct the text message from the Java primitive equivalent as described before.