Skip to content

Commit

Permalink
feat(#2592): checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Nov 15, 2023
1 parent 2fa4f66 commit 7e308c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions eo-maven-plugin/src/main/java/org/eolang/maven/PrintMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

/**
* Print XMIR to EO.
* @since 0.33.0
*/
@Mojo(
name = "print",
Expand Down Expand Up @@ -70,16 +71,16 @@ public final class PrintMojo extends SafeMojo {
@Override
void exec() throws IOException {
final Collection<Path> sources = new Walk(this.printSourcesDir.toPath());
final Home home = new HmBase(printOutputDir);
final Home home = new HmBase(this.printOutputDir);
for (final Path source : sources) {
final Path relative = Paths.get(
printSourcesDir.toPath().relativize(source).toString()
this.printSourcesDir.toPath().relativize(source).toString()
.replace(".xmir", ".eo")
);
home.save(new XMIR(new TextOf(source)).toEO(), relative);
Logger.info(
this,
"Printed: %s => %s", source, printOutputDir.toPath().resolve(relative)
"Printed: %s => %s", source, this.printOutputDir.toPath().resolve(relative)
);
}
Logger.info(this, "Printed %d sources", sources.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
import org.junit.jupiter.api.io.TempDir;

/**
* Test cases for {@link PrintMojo};
* Test cases for {@link PrintMojo}.
* @since 0.33.0
*/
final class PrintMojoTest {
@Test
Expand Down

0 comments on commit 7e308c3

Please sign in to comment.