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:
@@ -18,8 +18,8 @@
|
||||
*******************************************************************************/
|
||||
package org.apache.ofbiz.minilang;
|
||||
|
||||
import org.apache.ofbiz.minilang.artifact.ArtifactInfoContext;
|
||||
import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.minilang.artifact.ArtifactInfoContext;
|
||||
import org.apache.ofbiz.minilang.method.MethodContext;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
|
||||
+4
-4
@@ -21,10 +21,6 @@ package org.apache.ofbiz.minilang.method.conditional;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.oro.text.regex.MalformedPatternException;
|
||||
import org.apache.oro.text.regex.Pattern;
|
||||
import org.apache.oro.text.regex.PatternMatcher;
|
||||
import org.apache.oro.text.regex.Perl5Matcher;
|
||||
import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.base.util.PatternFactory;
|
||||
import org.apache.ofbiz.base.util.UtilXml;
|
||||
@@ -38,6 +34,10 @@ import org.apache.ofbiz.minilang.SimpleMethod;
|
||||
import org.apache.ofbiz.minilang.artifact.ArtifactInfoContext;
|
||||
import org.apache.ofbiz.minilang.method.MethodContext;
|
||||
import org.apache.ofbiz.minilang.method.MethodOperation;
|
||||
import org.apache.oro.text.regex.MalformedPatternException;
|
||||
import org.apache.oro.text.regex.Pattern;
|
||||
import org.apache.oro.text.regex.PatternMatcher;
|
||||
import org.apache.oro.text.regex.Perl5Matcher;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,14 +22,14 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.oro.text.regex.MalformedPatternException;
|
||||
import org.apache.oro.text.regex.Pattern;
|
||||
import org.apache.oro.text.regex.PatternMatcher;
|
||||
import org.apache.oro.text.regex.Perl5Matcher;
|
||||
import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.base.util.GeneralException;
|
||||
import org.apache.ofbiz.base.util.ObjectType;
|
||||
import org.apache.ofbiz.base.util.PatternFactory;
|
||||
import org.apache.oro.text.regex.MalformedPatternException;
|
||||
import org.apache.oro.text.regex.Pattern;
|
||||
import org.apache.oro.text.regex.PatternMatcher;
|
||||
import org.apache.oro.text.regex.Perl5Matcher;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user