You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/07/29 00:03:07 UTC

svn commit: r680524 - /maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java

Author: vsiveton
Date: Mon Jul 28 15:03:06 2008
New Revision: 680524

URL: http://svn.apache.org/viewvc?rev=680524&view=rev
Log:
o fixed checkstyle

Modified:
    maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java

Modified: maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java?rev=680524&r1=680523&r2=680524&view=diff
==============================================================================
--- maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java (original)
+++ maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java Mon Jul 28 15:03:06 2008
@@ -44,6 +44,9 @@
  */
 public class DoapUtil
 {
+    /** Magic number to repeat '=' */
+    private static final int REPEAT_EQUALS = 21;
+
     /** RDF resource attribute */
     protected static final String RDF_RESOURCE = "rdf:resource";
 
@@ -57,8 +60,8 @@
         XmlWriterUtil.writeLineBreak( writer );
 
         XmlWriterUtil.writeCommentLineBreak( writer );
-        XmlWriterUtil.writeComment( writer, StringUtils.repeat( "=", 21 ) + " - DO NOT EDIT THIS FILE! - "
-            + StringUtils.repeat( "=", 21 ) );
+        XmlWriterUtil.writeComment( writer, StringUtils.repeat( "=", REPEAT_EQUALS ) + " - DO NOT EDIT THIS FILE! - "
+            + StringUtils.repeat( "=", REPEAT_EQUALS ) );
         XmlWriterUtil.writeCommentLineBreak( writer );
         XmlWriterUtil.writeComment( writer, " " );
         XmlWriterUtil.writeComment( writer, "Any modifications will be overwritten." );
@@ -229,6 +232,7 @@
      * <br/>
      * <b>Note:</b> Actually, only English keys are used.
      *
+     * @param i18n i18n component
      * @param developersOrContributors list of <code>{@link Developer}/{@link Contributor}</code>
      * @return a none null map with <code>maintainers</code>, <code>developers</code>, <code>documenters</code>,
      * <code>translators</code>, <code>testers</code>, <code>helpers</code>, <code>unknowns</code> as keys and list of