From: aclement Date: Fri, 8 Jul 2005 15:19:44 +0000 (+0000) Subject: generics: more accurate generic type test. X-Git-Tag: PRE_ANDY~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=908baa7d7e4e0b879dc7893d0e03e56ff0e659b7;p=aspectj.git generics: more accurate generic type test. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index f3214bac2..59bc631ee 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -103,11 +103,6 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate { } return false; } - - public boolean isGeneric() { - return binding.genericSignature() != null; - } - public WeaverStateInfo getWeaverState() { return null; } @@ -459,4 +454,9 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate { public String getDeclaredGenericSignature() { return CharOperation.charToString(binding.genericSignature()); } + + public boolean isGeneric() { + char[] sig = binding.genericSignature(); + return (sig==null?false:sig[0]=='<'); + } }