From 806cd5ecfd33827e25a2ec6907d8f1a4ea63a451 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 7 Jul 2010 19:24:15 +0000 Subject: [PATCH] generics --- .../core/builder/AsmElementFormatter.java | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java index ba5fe5b49..537db3ace 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java @@ -116,8 +116,9 @@ public class AsmElementFormatter { kindOfDP = "implements "; try { ResolvedType rtx = tx.resolve(((AjLookupEnvironment) declare.scope.environment()).factory.getWorld()); - if (!rtx.isInterface()) + if (!rtx.isInterface()) { kindOfDP = "extends "; + } } catch (Throwable t) { // What can go wrong???? who knows! } @@ -128,8 +129,9 @@ public class AsmElementFormatter { typename = typename.substring(typename.lastIndexOf(".") + 1); } details.append(typename); - if ((i + 1) < newParents.length) + if ((i + 1) < newParents.length) { details.append(","); + } } node.setDetails(kindOfDP + details.toString()); @@ -185,7 +187,7 @@ public class AsmElementFormatter { // StringBuffer argumentsSignature = new StringBuffer("fubar"); // argumentsSignature.append("("); // if (methodDeclaration.arguments!=null && methodDeclaration.arguments.length>1) { - // + // // for (int i = 1;i names = new ArrayList(); + List paramSigs = new ArrayList(); + List paramSourceRefs = new ArrayList(); boolean problemWithSourceRefs = false; for (int i = 0; i < argArray.length; i++) { String argName = new String(argArray[i].name); @@ -454,8 +457,9 @@ public class AsmElementFormatter { // TODO: fix this way of determing ajc-added arguments, make subtype of Argument with extra info private boolean acceptArgument(String name, String type) { - if (name.charAt(0) != 'a' && type.charAt(0) != 'o') + if (name.charAt(0) != 'a' && type.charAt(0) != 'o') { return true; + } return !name.startsWith("ajc$this_") && !type.equals("org.aspectj.lang.JoinPoint.StaticPart") && !type.equals("org.aspectj.lang.JoinPoint") && !type.equals("org.aspectj.runtime.internal.AroundClosure"); } @@ -467,8 +471,9 @@ public class AsmElementFormatter { if (!ResolvedType.isMissing(typeX)) { label = typeX.getName(); - if (tp.isIncludeSubtypes()) + if (tp.isIncludeSubtypes()) { label += "+"; + } } else { label = TYPE_PATTERN_LITERAL; } -- 2.39.5