db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker NumberAccuracyTest.java
Date Thu, 22 Dec 2005 22:57:54 GMT
tomdz       2005/12/22 14:57:54

  Modified:    src/test/org/apache/ojb/broker NumberAccuracyTest.java
  Log:
  Removed usage of constructor BigDecimal(int) which is only available since Java 5
  
  Revision  Changes    Path
  1.2       +3 -3      db-ojb/src/test/org/apache/ojb/broker/NumberAccuracyTest.java
  
  Index: NumberAccuracyTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/NumberAccuracyTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NumberAccuracyTest.java	6 Apr 2004 15:29:21 -0000	1.1
  +++ NumberAccuracyTest.java	22 Dec 2005 22:57:54 -0000	1.2
  @@ -57,9 +57,9 @@
           assertTrue(0 == scaleFour.compareTo(newNo.getScaleFour()));
   
   
  -        BigDecimal newScaleTwo = newNo.getScaleTwo().multiply(new BigDecimal(10));
  +        BigDecimal newScaleTwo = newNo.getScaleTwo().multiply(new BigDecimal("10"));
           newNo.setScaleTwo(newScaleTwo);
  -        BigDecimal newScaleFour = newNo.getScaleFour().multiply(new BigDecimal(10));
  +        BigDecimal newScaleFour = newNo.getScaleFour().multiply(new BigDecimal("10"));
           newNo.setScaleFour(newScaleFour);
           broker.beginTransaction();
           broker.store(newNo);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message