From e4e698fa073a423b1a175ce308ead802142c55cb Mon Sep 17 00:00:00 2001 From: Ethan McCue Date: Sun, 23 Jan 2022 12:09:43 -0500 Subject: [PATCH] Fix package decl --- .../java/dev/mccue/magicbean/processor/AnnotationProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/mccue/magicbean/processor/AnnotationProcessor.java b/src/main/java/dev/mccue/magicbean/processor/AnnotationProcessor.java index efebd49..e895367 100644 --- a/src/main/java/dev/mccue/magicbean/processor/AnnotationProcessor.java +++ b/src/main/java/dev/mccue/magicbean/processor/AnnotationProcessor.java @@ -263,7 +263,7 @@ public boolean process( }; - var packageDecl = "package " + enclosingElement + ";\n\n"; + var packageDecl = packageName == null ? "" : "package " + packageName + ";\n\n"; String classDeclStart;