From 5ba9caef766c8f64050649bb314d0035728429c5 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 11 Nov 2024 07:28:36 +0300 Subject: [PATCH] toString for mojos --- eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java index c9231488ff..a0d03fb9ad 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java @@ -300,6 +300,11 @@ abstract class SafeMojo extends AbstractMojo { @SuppressWarnings("PMD.ImmutableField") private boolean skip; + @Override + public String toString() { + return this.getClass().getSimpleName(); + } + /** * Execute it. * @throws MojoFailureException If fails during build