diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-07-03 16:21:09 +0200 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-07-03 16:21:09 +0200 |
commit | b668038ed956adee56915f408032bd1d8ac5bf8c (patch) | |
tree | 2c2dc995eac8c21b59fa4a186f5d413d93670b38 /src | |
parent | ef85e779c69773001d9d4673993f537e5db11a35 (diff) | |
download | fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.gz fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.lz fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.xz fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.zip |
check for code presence
Diffstat (limited to 'src')
-rw-r--r-- | src/de/fernflower/main/rels/ClassWrapper.java | 3 |
1 files changed, 1 insertions, 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()); |