Improved: [DEPRECATION] Replace BigDecimal.ROUND_* by RoundingMode.*
(OFBIZ-9571) No functional change, simply better JavaDoc for deprecated getBigDecimalRoundingMode() methods git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -213,7 +213,7 @@ public final class UtilNumber {
|
||||
* Method to get BigDecimal rounding mode from a property
|
||||
* @param file - Name of the property file
|
||||
* @param property - Name of the config property from arithmeticPropertiesFile (e.g., "invoice.rounding")
|
||||
* @return int - Rounding mode to pass to BigDecimal's methods. Defaults to DEFAULT_BD_ROUNDING_MODE (RoundingMode.HALF_UP)
|
||||
* @return int - Rounding mode to pass to BigDecimal's methods. Defaults to BigDecimal.ROUND_HALF_UP
|
||||
* @deprecated Use {@link #getRoundingMode(String,String)} instead
|
||||
*/
|
||||
public static int getBigDecimalRoundingMode(String file, String property) {
|
||||
@@ -223,7 +223,7 @@ public final class UtilNumber {
|
||||
/**
|
||||
* As above, but use the default properties file
|
||||
* @param property - Name of the config property from arithmeticPropertiesFile (e.g., "invoice.rounding")
|
||||
* @return int - Rounding mode to pass to BigDecimal's methods. Defaults to DEFAULT_BD_ROUNDING_MODE (RoundingMode.HALF_UP)
|
||||
* @return int - Rounding mode to pass to BigDecimal's methods. Defaults to BigDecimal.ROUND_HALF_UP
|
||||
* @deprecated Use {@link #getRoundingMode(String)} instead
|
||||
*/
|
||||
public static int getBigDecimalRoundingMode(String property) {
|
||||
|
||||
Reference in New Issue
Block a user