]> source.dussan.org Git - aspectj.git/commitdiff
fix for 145950
authoraclement <aclement>
Thu, 8 Jun 2006 08:30:08 +0000 (08:30 +0000)
committeraclement <aclement>
Thu, 8 Jun 2006 08:30:08 +0000 (08:30 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java

index 80c7a53bf915991fed740b4a185457a24c207b97..085a83e7f08868dc2070e393566de27052946df7 100644 (file)
@@ -1299,17 +1299,12 @@ public final class LazyClassGen {
        // and if one of them is missing we fail, and it's not worth failing just to put out
        // a warning message!
        private boolean implementsSerializable(ResolvedType aType) {
+               if (aType.getSignature().equals(UnresolvedType.SERIALIZABLE.getSignature())) return true;
+               
                ResolvedType[] interfaces = aType.getDeclaredInterfaces();
                for (int i = 0; i < interfaces.length; i++) {
-                       if (interfaces[i].getSignature().equals(UnresolvedType.SERIALIZABLE.getSignature())) {
-                               return true;
-                       } else {
-                               if (interfaces[i].isMissing()) continue;
-                               ResolvedType superInterface = interfaces[i].getSuperclass();
-                               if (superInterface != null && !superInterface.isMissing()) {
-                                       if (implementsSerializable(superInterface)) return true;
-                               }
-                       }
+                       if (interfaces[i].isMissing()) continue;
+                       if (implementsSerializable(interfaces[i])) return true;
                }
                ResolvedType superType = aType.getSuperclass();
                if (superType != null && !superType.isMissing()) {