You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/03/18 13:57:44 UTC
[maven-changes-plugin] branch master updated: small code cleanup
(#13)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 824a2f5 small code cleanup (#13)
824a2f5 is described below
commit 824a2f529742d428b41f9a329ca90bef9e1620b2
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Wed Mar 18 09:57:39 2020 -0400
small code cleanup (#13)
* update commons collections
* unused import and more privat method
---
.../org/apache/maven/plugins/announcement/AnnouncementMojoTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/maven/plugins/announcement/AnnouncementMojoTest.java b/src/test/java/org/apache/maven/plugins/announcement/AnnouncementMojoTest.java
index 8dedfc6..9280c8c 100644
--- a/src/test/java/org/apache/maven/plugins/announcement/AnnouncementMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/announcement/AnnouncementMojoTest.java
@@ -22,7 +22,6 @@ package org.apache.maven.plugins.announcement;
import java.io.File;
import java.io.FileReader;
-import org.apache.maven.plugins.announcement.AnnouncementMojo;
import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import org.codehaus.plexus.util.FileUtils;
import org.codehaus.plexus.util.IOUtil;
@@ -93,7 +92,7 @@ public class AnnouncementMojoTest
assertContains( "Deleted the erroneous code.", result );
}
- protected void assertContains( String content, String announce )
+ private static void assertContains( String content, String announce )
{
assertTrue( announce.indexOf( content ) > 0 );
}