Author: lektran
Date: Sat Jul  7 05:35:09 2007
New Revision: 554190

URL: http://svn.apache.org/viewvc?view=rev&rev=554190
Log:
Removed references to BigDecimal.ZERO that aren't compatible with jdk 1.4

Modified:
    
ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Modified: 
ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?view=diff&rev=554190&r1=554189&r2=554190
==============================================================================
--- 
ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 (original)
+++ 
ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 Sat Jul  7 05:35:09 2007
@@ -1090,7 +1090,7 @@
                         BigDecimal amountCapturedBd = new 
BigDecimal(amountCaptured.doubleValue());
                         amountCapturedBd = amountCapturedBd.setScale(2, 
BigDecimal.ROUND_HALF_UP);
 
-                        if (amountCapturedBd.compareTo(BigDecimal.ZERO) == 0) {
+                        if (amountCapturedBd.compareTo(ZERO) == 0) {
                             continue;
                         }
                         // add the invoiceId to the result for processing
@@ -1386,7 +1386,7 @@
         Double captureAmountDbl = (Double) context.get("captureAmount");
         BigDecimal captureAmount = new 
BigDecimal(captureAmountDbl.doubleValue());
         String orderId = (String) context.get("orderId");
-        BigDecimal capturedAmount = BigDecimal.ZERO;
+        BigDecimal capturedAmount = ZERO;
         
         try {
             // Select all the unapplied payment applications associated to the 
billing account


Reply via email to