You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by dl...@apache.org on 2002/02/13 01:05:41 UTC
cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpc.java
dlr 02/02/12 16:05:41
Modified: src/java/org/apache/xmlrpc XmlRpc.java
Log:
Use the char data type for single character text.
Reviewed by: Leonard Richardson <le...@collab.net>
Revision Changes Path
1.10 +4 -6 xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java
Index: XmlRpc.java
===================================================================
RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -u -r1.9 -r1.10
--- XmlRpc.java 25 Jan 2002 22:21:54 -0000 1.9
+++ XmlRpc.java 13 Feb 2002 00:05:41 -0000 1.10
@@ -667,21 +667,21 @@
public void startElement (String elem)
{
- buf.append ("<");
+ buf.append ('<');
buf.append (elem);
- buf.append (">");
+ buf.append ('>');
}
public void endElement (String elem)
{
buf.append ("</");
buf.append (elem);
- buf.append (">");
+ buf.append ('>');
}
public void emptyElement (String elem)
{
- buf.append ("<");
+ buf.append ('<');
buf.append (elem);
buf.append ("/>");
}
@@ -729,9 +729,7 @@
{
return buf.toString ().getBytes (enc);
}
-
}
-
}