mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Only set accessibility once per message, not per delivery. Would be great to set it once per proxy creation though
This commit is contained in:
@@ -31,6 +31,7 @@ public final class Message {
|
||||
|
||||
public Message(@NotNull Topic topic, @NotNull Method listenerMethod, Object[] args) {
|
||||
myTopic = topic;
|
||||
listenerMethod.setAccessible(true);
|
||||
myListenerMethod = listenerMethod;
|
||||
myArgs = args;
|
||||
}
|
||||
|
||||
@@ -102,8 +102,6 @@ public class MessageBusConnectionImpl implements MessageBusConnection {
|
||||
|
||||
try {
|
||||
Method listenerMethod = message.getListenerMethod();
|
||||
// Method.invoke must be faster when Method.override is set to true
|
||||
listenerMethod.setAccessible(true);
|
||||
|
||||
if (handler == myDefaultHandler) {
|
||||
myDefaultHandler.handle(listenerMethod, message.getArgs());
|
||||
|
||||
Reference in New Issue
Block a user