From: aclement Date: Thu, 24 Mar 2005 13:10:57 +0000 (+0000) Subject: Fix for using declare annotation to target things in the default package X-Git-Tag: V1_5_0M2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f33c8225d1e74adf3cd5495f142e9659aa27b4c7;p=aspectj.git Fix for using declare annotation to target things in the default package --- diff --git a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java index 75fbfb551..15b58dcb2 100644 --- a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java +++ b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java @@ -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) {