diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/datastruct/PrivatelyQueuedListener.java b/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/datastruct/PrivatelyQueuedListener.java index 3fea52bb52..7ef23cbe11 100644 --- a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/datastruct/PrivatelyQueuedListener.java +++ b/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/datastruct/PrivatelyQueuedListener.java @@ -32,16 +32,16 @@ public class PrivatelyQueuedListener
{ private ListenerErrorHandler errorHandler = DataStructureErrorHandlerFactory.createListenerErrorHandler(); - protected class ListenerHandler implements InvocationHandler { - private static final Method OBJECT_HASHCODE; - static { - try { - OBJECT_HASHCODE = Object.class.getMethod("hashCode"); - } - catch (NoSuchMethodException | SecurityException e) { - throw new AssertionError(e); - } - } +protected class ListenerHandler implements InvocationHandler { + private static final Method OBJECT_HASHCODE = initObjectHashCode(); + + private static Method initObjectHashCode() { + try { + return Object.class.getMethod("hashCode"); + } catch (NoSuchMethodException | SecurityException e) { + throw new AssertionError(e); + } + } protected final Class
iface; public ListenerHandler(Class
iface) {