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:37 GMT
tomdz       2005/12/22 14:57:37

  Modified:    src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        NumberAccuracyTest.java
  Log:
  Removed usage of constructor BigDecimal(int) which is only available since Java 5
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.1   +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.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- NumberAccuracyTest.java	6 Apr 2004 15:29:21 -0000	1.1
  +++ NumberAccuracyTest.java	22 Dec 2005 22:57:37 -0000	1.1.2.1
  @@ -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