summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-07-03 16:21:09 +0200
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-07-03 16:21:09 +0200
commitb668038ed956adee56915f408032bd1d8ac5bf8c (patch)
tree2c2dc995eac8c21b59fa4a186f5d413d93670b38
parentef85e779c69773001d9d4673993f537e5db11a35 (diff)
downloadfernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar
fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.gz
fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.lz
fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.tar.xz
fernflower-b668038ed956adee56915f408032bd1d8ac5bf8c.zip
check for code presence
-rw-r--r--src/de/fernflower/main/rels/ClassWrapper.java3
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());