xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpc.java
Date Wed, 07 Aug 2002 04:47:28 GMT
dlr         2002/08/06 21:47:28

  Modified:    src/java/org/apache/xmlrpc XmlRpc.java
  Log:
  Formatter: Improved documentation.
  
  Revision  Changes    Path
  1.25      +6 -11     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.24
  retrieving revision 1.25
  diff -u -u -r1.24 -r1.25
  --- XmlRpc.java	7 Aug 2002 01:49:03 -0000	1.24
  +++ XmlRpc.java	7 Aug 2002 04:47:28 -0000	1.25
  @@ -902,7 +902,6 @@
   
   /**
    * Wraps a <code>DateFormat</code> instance to provide thread safety.
  - * FIXME: this seems like a lot of sync overhead and could be done better...
    */
   class Formatter
   {
  @@ -914,15 +913,12 @@
        */
       public Formatter()
       {
  -        // FIXME: this seems like a lot of overhead...shouldn't
  -        // the instance also be declared as static?
           f = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss");
       }
   
       /**
  -     *
  -     * @param d
  -     * @return
  +     * @param d The date to format.
  +     * @return the formatted date.
        */
       public synchronized String format(Date d)
       {
  @@ -930,10 +926,9 @@
       }
   
       /**
  -     *
  -     * @param s
  -     * @return
  -     * @throws ParseException
  +     * @param s The text to parse a date from.
  +     * @return The parsed date.
  +     * @throws ParseException If the date could not be parsed.
        */
       public synchronized Date parse(String s) throws ParseException
       {
  
  
  

Mime
View raw message