commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester TextRule.java
Date Wed, 11 Jun 2003 21:29:32 GMT
rdonkin     2003/06/11 14:29:32

  Modified:    betwixt/src/java/org/apache/commons/betwixt/digester
                        TextRule.java
  Log:
  Removed unneccessary field. Hopefully this won't break anything - it doesn't break any test
cases but who knows...Proposed by Abraham Fathman
  
  Revision  Changes    Path
  1.3       +2 -5      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/TextRule.java
  
  Index: TextRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/TextRule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TextRule.java	8 Apr 2003 13:39:03 -0000	1.2
  +++ TextRule.java	11 Jun 2003 21:29:32 -0000	1.3
  @@ -87,8 +87,6 @@
   
       /** Logger */
       private static final Log log = LogFactory.getLog( TextRule.class );
  -    /** Class for which the .bewixt file is being digested */
  -    private Class beanClass;
       /** Base constructor */
       public TextRule() {}
       
  @@ -125,13 +123,13 @@
               // property based text
               descriptor.setPropertyName( propertyName );
               
  +            Class beanClass = getBeanClass();
               
               // set the property type using reflection
               descriptor.setPropertyType( 
                   getPropertyType( propertyType, beanClass, propertyName ) 
               );
               
  -            Class beanClass = getBeanClass();
               if ( beanClass != null ) {
                   String name = descriptor.getPropertyName();
                   PropertyDescriptor propertyDescriptor = 
  @@ -151,7 +149,6 @@
               if (elementDescriptor == null) {
                   elementDescriptor.addContentDescriptor( descriptor );
               }
  -            beanClass = beanInfo.getBeanClass();
               
           } else if ( top instanceof ElementDescriptor ) {
               ElementDescriptor parent = (ElementDescriptor) top;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message