From 11e67b1c1854b0322cf7467512a060c2e534b035 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Tue, 21 Feb 2023 10:35:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20.gitignoreg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 21 ++----------------- .../generator/GeneratorSimpleMode.java | 4 +++- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index a0d6e2d..bb3b082 100644 --- a/.gitignore +++ b/.gitignore @@ -20,34 +20,16 @@ dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties .mvn/wrapper/maven-wrapper.jar -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf -.idea/**/contentModel.xml -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml -.idea/**/gradle.xml -.idea/**/libraries +.idea/ cmake-build-*/ -.idea/**/mongoSettings.xml *.iws out/ .idea_modules/ atlassian-ide-plugin.xml -.idea/replstate.xml com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties -.idea/httpRequests -.idea/caches/build_file_checksums.ser *~ .fuse_hidden* .directory @@ -83,3 +65,4 @@ Icon Network Trash Folder Temporary Items .apdisk +/haiti-field-constants-utils.iml diff --git a/src/main/java/dev/struchkov/haiti/utils/fieldconstants/generator/GeneratorSimpleMode.java b/src/main/java/dev/struchkov/haiti/utils/fieldconstants/generator/GeneratorSimpleMode.java index e34e06c..70dafd6 100644 --- a/src/main/java/dev/struchkov/haiti/utils/fieldconstants/generator/GeneratorSimpleMode.java +++ b/src/main/java/dev/struchkov/haiti/utils/fieldconstants/generator/GeneratorSimpleMode.java @@ -11,6 +11,8 @@ import javax.lang.model.element.Element; import java.util.ArrayList; import java.util.List; +import static dev.struchkov.haiti.utils.fieldconstants.util.Generator.getPackage; + public class GeneratorSimpleMode { public static void generate(ProcessingEnvironment processingEnv, Element annotatedElement) { @@ -27,7 +29,7 @@ public class GeneratorSimpleMode { newClass.setNewClassName(oldClassName + Mode.SIMPLE.getDefaultPostfix()); newClass.setOldClassName(oldClassName); newClass.setSimpleFields(simpleFields); - newClass.setClassPackage(Generator.getPackage(annotatedElement)); + newClass.setClassPackage(getPackage(annotatedElement)); CreatorClassSimpleMode.record(newClass, processingEnv); }