svn commit: r1801168 - /ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1801168 - /ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java

mbrohl
Author: mbrohl
Date: Fri Jul  7 14:09:50 2017
New Revision: 1801168

URL: http://svn.apache.org/viewvc?rev=1801168&view=rev
Log:
Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

Implement Serializable for class BillingAccountComparator.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java?rev=1801168&r1=1801167&r2=1801168&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/payment/BillingAccountWorker.java Fri Jul  7 14:09:50 2017
@@ -18,6 +18,7 @@
  *******************************************************************************/
 package org.apache.ofbiz.accounting.payment;
 
+import java.io.Serializable;
 import java.math.BigDecimal;
 import java.util.Collections;
 import java.util.Comparator;
@@ -212,8 +213,9 @@ public class BillingAccountWorker {
                     UtilMisc.toMap("billingAccountId", billingAccountId), locale));
         }
     }
-
-    protected static class BillingAccountComparator implements Comparator<Map<String, Object>> {
+    
+    @SuppressWarnings("serial")
+    protected static class BillingAccountComparator implements Comparator<Map<String, Object>>, Serializable{
         public int compare(Map<String, Object> billingAccount1, Map<String, Object> billingAccount2) {
             return ((BigDecimal)billingAccount1.get("accountBalance")).compareTo((BigDecimal)billingAccount2.get("accountBalance"));
         }