]> source.dussan.org Git - aspectj.git/commitdiff
Fix for using declare annotation to target things in the default package
authoraclement <aclement>
Thu, 24 Mar 2005 13:10:57 +0000 (13:10 +0000)
committeraclement <aclement>
Thu, 24 Mar 2005 13:10:57 +0000 (13:10 +0000)
weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java

index 75fbfb551c8546fb4108fa901f8d98ca03c62dec..15b58dcb2da1bbac04229e3c9cee6386115d1158 100644 (file)
@@ -348,7 +348,7 @@ public class AsmRelationshipProvider {
        public void addDeclareAnnotationRelationship(ISourceLocation sourceLocation, String typename,Method method) {
          if (!AsmManager.isCreatingModel()) return;
            
-         String pkg  = "";
+         String pkg  = null;
          String type = typename;
          int packageSeparator = typename.lastIndexOf(".");
          if (packageSeparator!=-1) {
@@ -410,7 +410,7 @@ public class AsmRelationshipProvider {
        public void addDeclareAnnotationRelationship(ISourceLocation sourceLocation, String typename,Field field) {
            if (!AsmManager.isCreatingModel()) return;
            
-           String pkg  = "";
+           String pkg  = null;
            String type = typename;
            int packageSeparator = typename.lastIndexOf(".");
            if (packageSeparator!=-1) {