You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/30 12:12:37 UTC
svn commit: r1129109 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java
Author: simonetripodi
Date: Mon May 30 10:12:37 2011
New Revision: 1129109
URL: http://svn.apache.org/viewvc?rev=1129109&view=rev
Log:
added missing javadoc comments
fixed checkstyle format violations
Modified:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java
Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java?rev=1129109&r1=1129108&r2=1129109&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/ObjectParamBuilder.java Mon May 30 10:12:37 2011
@@ -24,6 +24,7 @@ import org.apache.commons.digester3.Obje
/**
* Builder chained when invoking {@link LinkedRuleBuilder#objectParam(Object)}.
*
+ * @param <T> The object type represented by this builder
* @since 3.0
*/
public final class ObjectParamBuilder<T>
@@ -49,9 +50,11 @@ public final class ObjectParamBuilder<T>
* @param paramIndex The zero-relative index of the parameter we are saving
* @return this builder instance
*/
- public ObjectParamBuilder<T> ofIndex(int paramIndex) {
- if (paramIndex < 0) {
- this.reportError("objectParam(%s).ofIndex(int)", "negative index argument not allowed");
+ public ObjectParamBuilder<T> ofIndex( int paramIndex )
+ {
+ if ( paramIndex < 0 )
+ {
+ this.reportError( "objectParam( %s ).ofIndex( int )", "negative index argument not allowed" );
}
this.paramIndex = paramIndex;
@@ -64,7 +67,8 @@ public final class ObjectParamBuilder<T>
* @param attributeName The attribute which we are attempting to match
* @return this builder instance
*/
- public ObjectParamBuilder<T> matchingAttribute(/* @Nullable */String attributeName) {
+ public ObjectParamBuilder<T> matchingAttribute( /* @Nullable */String attributeName )
+ {
this.attributeName = attributeName;
return this;
}