From 2b38935f4e9dffbc122d18c032989ddda59d7196 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 28 Apr 1999 16:24:00 +0000 Subject: [PATCH] Don't print abstract modifier for interfaces git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@688 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/ClassAnalyzer.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jode/jode/decompiler/ClassAnalyzer.java b/jode/jode/decompiler/ClassAnalyzer.java index 8bfd527..64dd131 100644 --- a/jode/jode/decompiler/ClassAnalyzer.java +++ b/jode/jode/decompiler/ClassAnalyzer.java @@ -72,9 +72,6 @@ public class ClassAnalyzer implements Analyzer { } public void analyze() { - int numFields = 0; - int i = 0; - FieldInfo[] finfos = clazz.getFields(); MethodInfo[] minfos = clazz.getMethods(); if (finfos == null) { @@ -136,12 +133,15 @@ public class ClassAnalyzer implements Analyzer { */ return; } - String modif = Modifier.toString(clazz.getModifiers() - & ~Modifier.SYNCHRONIZED); + int modifiedModifiers = clazz.getModifiers() & ~Modifier.SYNCHRONIZED; + if (clazz.isInterface()) + modifiedModifiers &= ~Modifier.ABSTRACT; + String modif = Modifier.toString(modifiedModifiers); if (modif.length() > 0) writer.print(modif + " "); - writer.print(clazz.isInterface() - ? ""/*interface is in modif*/ : "class "); + /*interface is in modif*/ + if (!clazz.isInterface()) + writer.print("class "); writer.println(imports.getClassString(clazz)); writer.tab(); ClassInfo superClazz = clazz.getSuperclass();