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 Tue, 08 Apr 2003 13:39:03 GMT
rdonkin     2003/04/08 06:39:03

  Modified:    betwixt/src/java/org/apache/commons/betwixt/digester
                        TextRule.java
  Log:
  Tidied up code
  
  Revision  Changes    Path
  1.2       +5 -7      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TextRule.java	19 Mar 2003 22:59:01 -0000	1.1
  +++ TextRule.java	8 Apr 2003 13:39:03 -0000	1.2
  @@ -57,8 +57,6 @@
    * 
    */
   
  -import java.beans.BeanInfo;
  -import java.beans.Introspector;
   import java.beans.PropertyDescriptor;
   
   import java.lang.reflect.Method;
  @@ -68,7 +66,6 @@
   import org.apache.commons.betwixt.TextDescriptor;
   import org.apache.commons.betwixt.ElementDescriptor;
   import org.apache.commons.betwixt.XMLBeanInfo;
  -import org.apache.commons.betwixt.XMLUtils;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.xml.sax.Attributes;
  @@ -79,7 +76,7 @@
     * These allow mixed content text to be specified.
     * A mixed content element example:
     * <pre>
  -  * 	&lt;foo&gt;text&lt;bar/&gt;&lt;/foo&gt;
  +  *     &lt;foo&gt;text&lt;bar/&gt;&lt;/foo&gt;
     * </pre>
     * </p>
     *
  @@ -117,8 +114,9 @@
           if ( value != null) {
               if ( propertyName != null || propertyType != null ) {
                   // not allowed
  -                throw new SAXException("You cannot specify attribute 'value' together with
either " +
  -                    " the 'property' or 'type' attributes");                
  +                throw new SAXException(
  +                    "You cannot specify attribute 'value' together with either " 
  +                    + " the 'property' or 'type' attributes");                
               }
               // fixed value text
               descriptor.setTextExpression( new ConstantExpression( value ) );
  
  
  

---------------------------------------------------------------------
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