oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1483837 - /oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl
Date Fri, 17 May 2013 14:59:05 GMT
Author: simonetripodi
Date: Fri May 17 14:59:04 2013
New Revision: 1483837

URL: http://svn.apache.org/r1483837
Log:
aux parameters are always preceded by known parameters

Modified:
    oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl

Modified: oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl
URL: http://svn.apache.org/viewvc/oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl?rev=1483837&r1=1483836&r2=1483837&view=diff
==============================================================================
--- oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl (original)
+++ oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl Fri May 17
14:59:04 2013
@@ -71,19 +71,12 @@ public final class <xsl:value-of select=
     {
         java.lang.StringBuilder builder = new java.lang.StringBuilder( " <xsl:value-of
select="@name" />[" )<xsl:apply-templates select="parameter" mode="toString" />;
 
-        int counter = 0;
         for ( java.util.Map.Entry&lt;String, String&gt; auxParameter : auxParameters.entrySet()
)
         {
-            if ( counter > 0 )
-            {
-                builder.append( ", " );
-            }
-
-            builder.append( auxParameter.getKey() )
+            builder.append( ", " )
+                   .append( auxParameter.getKey() )
                    .append( ": " )
                    .append( auxParameter.getValue() );
-
-            counter++;
         }
 
         return builder.append( "]" ).toString();



Mime
View raw message