From 0a29a0a8df4093088cd61ff2abfa310a68361d69 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Wed, 12 Sep 2018 14:29:32 +0300 Subject: [PATCH] cleanup: use hasModifier --- .../decompiler/modules/decompiler/exps/InvocationExprent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java index f92682a..8472cef 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java @@ -248,7 +248,7 @@ public class InvocationExprent extends Exprent { if (invocationTyp == INVOKE_SPECIAL) { if (!classname.equals(this_classname)) { // TODO: direct comparison to the super class? StructClass cl = DecompilerContext.getStructContext().getClass(classname); - boolean isInterface = cl != null && (cl.getAccessFlags() & CodeConstants.ACC_INTERFACE) != 0; + boolean isInterface = cl != null && cl.hasModifier(CodeConstants.ACC_INTERFACE); super_qualifier = !isInterface ? this_classname : classname; } }