commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1128603 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
Date Sat, 28 May 2011 11:26:59 GMT
Author: simonetripodi
Date: Sat May 28 11:26:59 2011
New Revision: 1128603

URL: http://svn.apache.org/viewvc?rev=1128603&view=rev
Log:
propertyName field can be final
added propertyName getter

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java?rev=1128603&r1=1128602&r2=1128603&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
Sat May 28 11:26:59 2011
@@ -76,7 +76,7 @@ public class BeanPropertySetterRule
     /**
      * Set this property on the top object.
      */
-    protected String propertyName = null;
+    private final String propertyName;
 
     /**
      * The body text used to set the property.
@@ -86,6 +86,16 @@ public class BeanPropertySetterRule
     // --------------------------------------------------------- Public Methods
 
     /**
+     * Returns the property name associated to this setter rule.
+     *
+     * @return The property name associated to this setter rule
+     */
+    public String getPropertyName()
+    {
+        return propertyName;
+    }
+
+    /**
      * {@inheritDoc}
      */
     @Override



Mime
View raw message