From 9f41dde9ec429c9d2034728f7bb95becae8bb31f Mon Sep 17 00:00:00 2001 From: "Roman I. Lovakov" Date: Thu, 8 Dec 2022 18:00:55 +0300 Subject: [PATCH] fix package on codegen classes --- .../haiti/utils/fieldconstants/CreatorClassTableMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/struchkov/haiti/utils/fieldconstants/CreatorClassTableMode.java b/src/main/java/dev/struchkov/haiti/utils/fieldconstants/CreatorClassTableMode.java index d9f583e..06234a4 100644 --- a/src/main/java/dev/struchkov/haiti/utils/fieldconstants/CreatorClassTableMode.java +++ b/src/main/java/dev/struchkov/haiti/utils/fieldconstants/CreatorClassTableMode.java @@ -33,7 +33,7 @@ public final class CreatorClassTableMode { public static void record(ClassTableDto classDto, ProcessingEnvironment environment) { JavaFileObject builderFile = null; try { - builderFile = environment.getFiler().createSourceFile(classDto.getClassName()); + builderFile = environment.getFiler().createSourceFile(classDto.getClassPackage() +"." + classDto.getClassName()); } catch (IOException e) { e.printStackTrace(); }