Improved: Fixing defects reported by FindBugs.
Implement Serializable for class BillingAccountComparator.
*******************************************************************************/
package org.apache.ofbiz.accounting.payment;
+import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.Comparator;
@@ -213,7 +214,8 @@ public class BillingAccountWorker {
}
}
- 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"));
}
