fixed the check for default constructors modifiers

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@974 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 714e02cb6a
commit 0b4cbb226c
  1. 8
      jode/jode/decompiler/MethodAnalyzer.java

@ -482,11 +482,13 @@ public class MethodAnalyzer implements Analyzer, Scope, ClassDeclarer {
* But this rule doesn't necessarily apply for anonymous
* classes...
*/
&& ((minfo.getModifiers() & Modifier.PUBLIC)
== (getClazz().getModifiers() & Modifier.PUBLIC)
&& ((minfo.getModifiers()
& (Modifier.PROTECTED | Modifier.PUBLIC))
== (getClassAnalyzer().getModifiers()
& (Modifier.PROTECTED | Modifier.PUBLIC))
|| classAnalyzer.getName() == null)
&& (minfo.getModifiers()
& (Modifier.PRIVATE | Modifier.PROTECTED
& (Modifier.PRIVATE
| Modifier.SYNCHRONIZED | Modifier.STATIC
| Modifier.ABSTRACT | Modifier.NATIVE)) == 0
&& classAnalyzer.constructors.length == 1) {

Loading…
Cancel
Save