Remove most modifiers from static constructors, since java syntax

doesn't allow them.


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1237 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
hoenicke 25 years ago
parent 058eb11e6a
commit 60889790b5
  1. 6
      jode/jode/decompiler/MethodAnalyzer.java.in

@ -833,10 +833,12 @@ public class MethodAnalyzer implements Scope, ClassDeclarer {
modifiedModifiers &= ~Modifier.ABSTRACT; modifiedModifiers &= ~Modifier.ABSTRACT;
/* Don't ask me why, but jikes declares the static constructor /* Don't ask me why, but jikes declares the static constructor
* as final. * as final. Another compiler or obfuscator seems to declare
* it as public. I remove every fancy modifier, now.
*/ */
if (isConstructor() && isStatic()) if (isConstructor() && isStatic())
modifiedModifiers &= ~Modifier.FINAL; modifiedModifiers &= ~(Modifier.FINAL | Modifier.PUBLIC
| Modifier.PROTECTED | Modifier.PRIVATE);
writer.startOp(writer.NO_PAREN, 1); writer.startOp(writer.NO_PAREN, 1);
String delim = ""; String delim = "";

Loading…
Cancel
Save