diff options
Diffstat (limited to 'org.aspectj.matcher/src')
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/UnresolvedType.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/UnresolvedType.java b/org.aspectj.matcher/src/org/aspectj/weaver/UnresolvedType.java index 14d00e5b1..b5d085c3e 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/UnresolvedType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/UnresolvedType.java @@ -259,7 +259,6 @@ public class UnresolvedType implements Traceable, TypeVariableDeclaringElement { } public static UnresolvedType forGenericType(String name, TypeVariable[] tvbs, String genericSig) { - // TODO asc generics needs a declared sig String sig = nameToSignature(name); UnresolvedType ret = UnresolvedType.forSignature(sig); ret.typeKind = TypeKind.GENERIC; @@ -921,8 +920,9 @@ public class UnresolvedType implements Traceable, TypeVariableDeclaringElement { public String getPackageName() { if (packageName == null) { String name = getName(); - if (name.indexOf("<") != -1) { - name = name.substring(0, name.indexOf("<")); + int angly = name.indexOf('<'); + if (angly != -1) { + name = name.substring(0, angly); } int index = name.lastIndexOf('.'); if (index == -1) { @@ -934,8 +934,6 @@ public class UnresolvedType implements Traceable, TypeVariableDeclaringElement { return packageName; } - // TODO these move to a TypeUtils class - public static void writeArray(UnresolvedType[] types, CompressingDataOutputStream stream) throws IOException { int len = types.length; stream.writeShort(len); |