From f33c8225d1e74adf3cd5495f142e9659aa27b4c7 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 24 Mar 2005 13:10:57 +0000 Subject: [PATCH] Fix for using declare annotation to target things in the default package --- weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5