cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r605394 - /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java
Date Wed, 19 Dec 2007 03:02:09 GMT
Author: vgritsenko
Date: Tue Dec 18 19:02:08 2007
New Revision: 605394

URL: http://svn.apache.org/viewvc?rev=605394&view=rev
Log:
fix string buffer usage

Modified:
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java?rev=605394&r1=605393&r2=605394&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/CalendarGenerator.java
Tue Dec 18 19:02:08 2007
@@ -329,19 +329,20 @@
      */
     protected void addContent(Calendar date, Locale locale) throws SAXException {}
 
-    /* (non-Javadoc)
+    /**
      * @see org.apache.cocoon.caching.CacheableProcessingComponent#getKey()
      */
     public Serializable getKey() {
         StringBuffer buffer = new StringBuffer();
         int len = this.cacheKeyParList.size();
         for (int i = 0; i < len; i++) {
-            buffer.append(this.cacheKeyParList.get(i) + ":");
+            buffer.append(this.cacheKeyParList.get(i)).append(":");
         }
+
         return buffer.toString();
     }
     
-    /* (non-Javadoc)
+    /**
      * @see org.apache.cocoon.caching.CacheableProcessingComponent#getValidity()
      */
     public SourceValidity getValidity() {
@@ -360,5 +361,4 @@
         this.locale = null;
         super.recycle();
     }
-
 }



Mime
View raw message