Update of /cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv3549/src/net/sf/jaxme/impl

Modified Files:
        Duration.java 
Log Message:
Made the test suite working again. Bugfix by Marty Kube.


Index: Duration.java
===================================================================
RCS file: /cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/impl/Duration.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Duration.java       9 Feb 2003 17:52:00 -0000       1.1
+++ Duration.java       12 Feb 2003 18:55:46 -0000      1.2
@@ -2,6 +2,7 @@
 
 import java.io.Serializable;
 import java.text.MessageFormat;
+import java.text.NumberFormat;
 import java.text.ParseException;
 
 
@@ -90,7 +91,8 @@
    */
   public String toString() {
     return "P" + getYears() + "Y" + getMonths() + "M" + getDays() + "DT" +
-      getHours() + "H" + getMinutes() + "M" + getSeconds() + "S";
+      getHours() + "H" + getMinutes() + "M" +
+      NumberFormat.getInstance().format(getSeconds()) + "S";
   }
 
   /** <p>Converts the given String representation into an instance of
@@ -132,7 +134,7 @@
     } else if (seconds < d.seconds) {
       return -1;
     } else {
-      return 1;
+      return 0;
     }
   }
 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jaxme-jaxb-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxme-jaxb-dev

Reply via email to