You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by fg...@apache.org on 2005/12/30 16:42:49 UTC

svn commit: r360110 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java

Author: fgiust
Date: Fri Dec 30 07:42:46 2005
New Revision: 360110

URL: http://svn.apache.org/viewcvs?rev=360110&view=rev
Log:
the list returned by Arrays.asList() doesn't support remove() (java.lang.UnsupportedOperationException at java.util.AbstractList.remove()), wrapping it in an ArrayList

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java?rev=360110&r1=360109&r2=360110&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java Fri Dec 30 07:42:46 2005
@@ -290,7 +290,7 @@
         sink.tableCell();
         sink.text( ruleName );
         
-        List attribnames = Arrays.asList( checkerConfig.getAttributeNames() );
+        List attribnames = new ArrayList( Arrays.asList( checkerConfig.getAttributeNames() ) );
         attribnames.remove( "severity" ); // special value (deserves unique column)
         if ( !attribnames.isEmpty() )
         {