]> source.dussan.org Git - aspectj.git/commitdiff
generics: more accurate generic type test.
authoraclement <aclement>
Fri, 8 Jul 2005 15:19:44 +0000 (15:19 +0000)
committeraclement <aclement>
Fri, 8 Jul 2005 15:19:44 +0000 (15:19 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index f3214bac268dc1c9ccfbaa20e21eff731a547d24..59bc631ee4a878794e9e58030ca23eeee802cd78 100644 (file)
@@ -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]=='<');
+       }
 }