From 82ead98c5d24dc80f7d3f05a819f258bc7018029 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 16 Aug 2023 13:47:37 -0700 Subject: [PATCH] Minor cleanup --- .idea/inspectionProfiles/Project_Default.xml | 8 ++++++++ src/main/java/rife/bld/publish/PomBuilder.java | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..1e01b48 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/src/main/java/rife/bld/publish/PomBuilder.java b/src/main/java/rife/bld/publish/PomBuilder.java index 7d37afc..9e2540b 100644 --- a/src/main/java/rife/bld/publish/PomBuilder.java +++ b/src/main/java/rife/bld/publish/PomBuilder.java @@ -131,9 +131,7 @@ public String build() { */ public static void generateInto(PublishInfo info, DependencyScopes dependencies, File file) throws FileUtilsErrorException { - var pomBuilder = new PomBuilder(); - pomBuilder.info_ = info; - pomBuilder.dependencies_ = dependencies; + var pomBuilder = new PomBuilder().info(info).dependencies(dependencies); FileUtils.writeString(pomBuilder.build(), file); }