]> source.dussan.org Git - aspectj.git/commitdiff
create a typeX from a set of TypeX parameters
authoracolyer <acolyer>
Fri, 8 Jul 2005 13:25:02 +0000 (13:25 +0000)
committeracolyer <acolyer>
Fri, 8 Jul 2005 13:25:02 +0000 (13:25 +0000)
weaver/src/org/aspectj/weaver/TypeX.java

index 630b24fad045d77da2d6926cc5319631dc3c55f3..b0b5509e87c47aad7dc69058b50f0a313ef4b165 100644 (file)
@@ -250,11 +250,11 @@ public class TypeX implements AnnotatedElement {
                                paramTypes[i] = TypeX.forName(paramTypeNames[i]);
                        }
                }
-       return TypeX.forParameterizedTypes(name, paramTypes);
+       return TypeX.forParameterizedTypes(TypeX.forName(name), paramTypes);
     }
     
-    public static TypeX forParameterizedTypes(String name, TypeX[] paramTypes) {
-               TypeX ret = TypeX.forName(name);
+    public static TypeX forParameterizedTypes(TypeX rawType, TypeX[] paramTypes) {
+               TypeX ret = rawType;
                ret.typeKind=PARAMETERIZED;
                ret.typeParameters = paramTypes;
                ret.rawTypeSignature = ret.signature;