Improved: [DEPRECATION] Replace BigDecimal.ROUND_* by RoundingMode.*

(OFBIZ-9571)

No functional change.

We read at http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html : 
<<Using the integer fields in this class (such as ROUND_HALF_UP) to represent 
rounding mode is largely obsolete; the enumeration values of the RoundingMode 
enum, (such as RoundingMode.HALF_UP) should be used instead.>>

That's an easy global replacement. But it also needs to import the RoundingMode 
class. It was 26 files so I decided to rather clean all the imports in all files
 with the help of Eclipse.

This is a 1st step. I will need to closely look at 2 special class: UtilNumber
and Calculate.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1804953 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-08-14 08:32:21 +00:00
parent a938fcfbc9
commit bfd533ccc3
170 changed files with 548 additions and 468 deletions
@@ -19,13 +19,13 @@
package org.apache.ofbiz.entityext.eca;
import org.w3c.dom.Element;
import org.apache.ofbiz.base.util.UtilValidate;
import java.util.Map;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.UtilValidate;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.entity.model.ModelUtil;
import java.util.Map;
import org.w3c.dom.Element;
/**
* ServiceEcaSetField