Skip to content

Commit

Permalink
Fix AbstractMLC.getMessageListener Return Type
Browse files Browse the repository at this point in the history
Getter For MessageListener Tuned With Its Setter

Now that we have removed deprecated setMessageListener,
which used to accept an argument of type 'Object', and now
that we have only one setter which accepts an argument of type
`MessageListener`, it now makes sense to return `MessageListener`
from getter method.

This not only makes getter and setter tuned but would fix the
problem wherein the getter and setter required to be working on
the same parameter type. e.g. in jxm library.
  • Loading branch information
ankushgats authored and garyrussell committed Jun 15, 2022
1 parent ac62429 commit e25600b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,11 @@ protected void checkMessageListener(Object listener) {

@Override
@Nullable
public Object getMessageListener() {
/**
* Get a reference to the message listener.
* @return the message listener.
*/
public MessageListener getMessageListener() {
return this.messageListener;
}

Expand Down

0 comments on commit e25600b

Please sign in to comment.