From 6ce8dd89e32f6c80f522c3de439570a2b185e86a Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 13 Feb 2018 09:30:34 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/ofbiz/base/util/UtilNumber.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilNumber.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilNumber.java index e4271bf447..fd720f242b 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilNumber.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilNumber.java @@ -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) {