maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r759463 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java
Date Sat, 28 Mar 2009 14:03:07 GMT
Author: vsiveton
Date: Sat Mar 28 14:03:07 2009
New Revision: 759463

URL: http://svn.apache.org/viewvc?rev=759463&view=rev
Log:
o removed unknown tag to prevent multi writing

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java?rev=759463&r1=759462&r2=759463&view=diff
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.java
Sat Mar 28 14:03:07 2009
@@ -1754,11 +1754,13 @@
                     for ( Iterator it = javaEntityTags.getUnknownTags().iterator(); it.hasNext();
)
                     {
                         String originalJavadocTag = it.next().toString();
+                        it.remove();
 
                         if ( StringUtils.removeDuplicateWhitespace( originalJavadocTag ).trim()
                                         .indexOf( "@" + docletTag.getName() ) != -1 )
                         {
                             sb.append( originalJavadocTag );
+                            sb.append( EOL );
                         }
                     }
                 }
@@ -1768,11 +1770,13 @@
                 for ( Iterator it = javaEntityTags.getUnknownTags().iterator(); it.hasNext();
)
                 {
                     String originalJavadocTag = it.next().toString();
+                    it.remove();
 
                     if ( StringUtils.removeDuplicateWhitespace( originalJavadocTag ).trim()
                                     .indexOf( "@" + docletTag.getName() ) != -1 )
                     {
                         sb.append( originalJavadocTag );
+                        sb.append( EOL );
                     }
                 }
             }



Mime
View raw message