From b668038ed956adee56915f408032bd1d8ac5bf8c Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 3 Jul 2014 16:21:09 +0200 Subject: check for code presence --- src/de/fernflower/main/rels/ClassWrapper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/fernflower/main/rels/ClassWrapper.java b/src/de/fernflower/main/rels/ClassWrapper.java index 11adda0..e09b1df 100644 --- a/src/de/fernflower/main/rels/ClassWrapper.java +++ b/src/de/fernflower/main/rels/ClassWrapper.java @@ -88,8 +88,7 @@ public class ClassWrapper { boolean isError = false; try { - // TODO: simple check if code present? - if((mt.getAccessFlags() & (CodeConstants.ACC_ABSTRACT | CodeConstants.ACC_NATIVE)) == 0) { // native or abstract method, explicit or interface + if(mt.containsCode()) { int maxsec = 10 * Integer.parseInt(DecompilerContext.getProperty(IFernflowerPreferences.MAX_PROCESSING_METHOD).toString()); -- cgit v1.2.3