From 0b4cbb226c204e8457441e5d7af8ab57626aaf45 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 2 Jul 1999 18:43:46 +0000 Subject: [PATCH] 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 --- jode/jode/decompiler/MethodAnalyzer.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index 9fc0b4e..424e3f5 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/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) {