You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oltu.apache.org by si...@apache.org on 2013/05/13 11:53:23 UTC

svn commit: r1481766 - /oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl

Author: simonetripodi
Date: Mon May 13 09:53:23 2013
New Revision: 1481766

URL: http://svn.apache.org/r1481766
Log:
'addAuxParameter()' method must respect the Builder pattern

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=1481766&r1=1481765&r2=1481766&view=diff
==============================================================================
--- oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl (original)
+++ oltu/whiteboard/simonetripodi/oltu-commons/src/main/stylesheet/commons.xsl Mon May 13 09:53:23 2013
@@ -99,14 +99,21 @@ public final class <xsl:value-of select=
 
         private final java.util.Map&lt;String, Object&gt; auxParameters = new java.util.HashMap&lt;String, Object&gt;();
 
-        public &lt;T&gt; T addAuxParameter( final String key, final T value )
+        /**
+         * Add an auxiliary parameter.
+         *
+         * @parameter key the aux parameter name.
+         * @parameter value the aux parameter value.
+         * @return this builder instance.
+         */
+        public &lt;T&gt; Builder addAuxParameter( final String key, final T value )
         {
             if ( key == null )
             {
                 throw new IllegalArgumentException( "Parameter 'key' can not be null." );
             }
             auxParameters.put( key, value );
-            return value;
+            return this;
         }
 
         /**