You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2003/04/08 15:39:03 UTC
cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester TextRule.java
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>
- * <foo>text<bar/></foo>
+ * <foo>text<bar/></foo>
* </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