Workaround JDK-8087309: Constant folding "static final boolean" in boolean expressions is incomplete
This commit is contained in:
parent
06130912c5
commit
ccf5da2113
|
@ -40,14 +40,8 @@ public class ASMEventHandler implements IEventListener
|
|||
@Override
|
||||
public void invoke(Event event)
|
||||
{
|
||||
if (owner != null && GETCONTEXT)
|
||||
{
|
||||
ThreadContext.put("mod", owner.getName());
|
||||
}
|
||||
else if (GETCONTEXT)
|
||||
{
|
||||
ThreadContext.put("mod", "");
|
||||
}
|
||||
if (GETCONTEXT)
|
||||
ThreadContext.put("mod", owner == null ? "" : owner.getName());
|
||||
if (handler != null)
|
||||
{
|
||||
if (!event.isCancelable() || !event.isCanceled() || subInfo.receiveCanceled())
|
||||
|
|
Loading…
Reference in New Issue