From 2df49d32a71818227e80a8628688906f2ede8a6a Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 2 Sep 2014 20:56:03 +0400 Subject: java-decompiler: fixes and cleanups - unified attribute loading code - common methods for checking member flags - verifying skip() - correct resource closing - typos --- src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java') diff --git a/src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java b/src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java index 53269da..65a6213 100644 --- a/src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java +++ b/src/org/jetbrains/java/decompiler/struct/gen/DataPoint.java @@ -65,7 +65,7 @@ public class DataPoint { MethodDescriptor md = MethodDescriptor.parseDescriptor(mt.getDescriptor()); int k = 0; - if ((mt.getAccessFlags() & CodeConstants.ACC_STATIC) == 0) { + if (!mt.hasModifier(CodeConstants.ACC_STATIC)) { point.setVariable(k++, new VarType(CodeConstants.TYPE_OBJECT, 0, null)); } -- cgit v1.2.3