Workaround JDK-8087309: Constant folding "static final boolean" in boolean expressions is incomplete

This commit is contained in:
Ross Allan 2016-02-13 14:43:37 +00:00
parent 06130912c5
commit ccf5da2113
1 changed files with 2 additions and 8 deletions

View File

@ -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())