From da2d73b7876ada0c6088d22847b4eb30b2533cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kohlsch=C3=BCtter?= Date: Tue, 18 Jul 2023 11:04:51 +0200 Subject: [PATCH] Add missing @Override statements; remove unnecessary import Closes #66 --- .../codehaus/mojo/templating/AbstractFilterSourcesMojo.java | 5 +++-- .../mojo/templating/AbstractFilterSourcesMojoTest.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojo.java b/src/main/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojo.java index 7cdffec..7fe27f8 100644 --- a/src/main/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojo.java +++ b/src/main/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojo.java @@ -78,14 +78,14 @@ public abstract class AbstractFilterSourcesMojo * Set of delimiters for expressions to filter within the resources. These delimiters are specified in the form * 'beginToken*endToken'. If no '*' is given, the delimiter is assumed to be the same for start and end. So, the * default filtering delimiters might be specified as: - * + * *
      * <delimiters>
      *   <delimiter>${*}</delimiter>
      *   <delimiter>@</delimiter>
      * </delimiters>
      * 
- * + * * Since the '@' delimiter is the same on both ends, we don't need to specify '@*@' (though we can). */ @Parameter @@ -123,6 +123,7 @@ public abstract class AbstractFilterSourcesMojo protected MavenResourcesFiltering mavenResourcesFiltering; /** {@inheritDoc} */ + @Override public void execute() throws MojoExecutionException { diff --git a/src/test/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojoTest.java b/src/test/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojoTest.java index c3c7834..1902c97 100644 --- a/src/test/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojoTest.java +++ b/src/test/java/org/codehaus/mojo/templating/AbstractFilterSourcesMojoTest.java @@ -121,6 +121,7 @@ private static class MockCopyAnswer implements Answer { + @Override public Void answer( InvocationOnMock invocation ) throws Throwable {