From 56922c580b1c9ad56b313e827847d19997811872 Mon Sep 17 00:00:00 2001 From: maxonfjvipon Date: Fri, 1 Mar 2024 17:50:33 +0300 Subject: [PATCH] fix(#2909): checkstyle --- .../src/main/java/org/eolang/maven/UnphiMojo.java | 5 +---- .../src/test/java/org/eolang/maven/UnphiMojoTest.java | 7 +++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/UnphiMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/UnphiMojo.java index 3019e74658..70df92939e 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/UnphiMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/UnphiMojo.java @@ -29,7 +29,6 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; -import java.util.Iterator; import java.util.List; import java.util.Set; import org.apache.maven.plugins.annotations.LifecyclePhase; @@ -37,7 +36,6 @@ import org.apache.maven.plugins.annotations.Parameter; import org.cactoos.experimental.Threads; import org.cactoos.iterable.IterableEnvelope; -import org.cactoos.iterable.IterableOf; import org.cactoos.iterable.Joined; import org.cactoos.iterable.Mapped; import org.cactoos.list.ListOf; @@ -48,10 +46,8 @@ import org.eolang.maven.util.Home; import org.eolang.maven.util.Walk; import org.eolang.parser.PhiSyntax; -import org.eolang.parser.XeEoListener; import org.xembly.Directive; import org.xembly.Directives; -import org.xembly.Xembler; /** * Read PHI files and parse them to the XMIR. @@ -89,6 +85,7 @@ public final class UnphiMojo extends SafeMojo { * Extra metas to add to unphied XMIR. * @checkstyle MemberNameCheck (10 lines) */ + @SuppressWarnings("PMD.ImmutableField") @Parameter(property = "eo.unphiMetas") private Set unphiMetas = new SetOf<>(); diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java index 2d5ba2c682..5720e74cb7 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java @@ -96,7 +96,10 @@ void addsMetas(@TempDir final Path temp) throws IOException { "Unphied XMIR must contain metas, added via \"unphiMetas\" parameter", new XMLDocument( new FakeMaven(temp) - .with("unphiMetas", new SetOf<>("+tests", "+home https://github.com/objectionary/eo")) + .with( + "unphiMetas", + new SetOf<>("+tests", "+home https://github.com/objectionary/eo") + ) .execute(UnphiMojo.class) .result() .get(String.format("target/%s/std.xmir", ParseMojo.DIR)) @@ -107,7 +110,7 @@ void addsMetas(@TempDir final Path temp) throws IOException { ) ); } - + @Test void failsIfPackageMetaIsAdded(@TempDir final Path temp) throws IOException { new HmBase(temp).save(