You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/08/14 19:53:16 UTC
[lang] LANG-1408: add final to method params
Repository: commons-lang
Updated Branches:
refs/heads/master b31877a46 -> 4f4e2b064
LANG-1408: add final to method params
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/4f4e2b06
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/4f4e2b06
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/4f4e2b06
Branch: refs/heads/master
Commit: 4f4e2b064e98ce1abce98428965f8eed86f4543e
Parents: b31877a
Author: Rob Tompkins <ch...@apache.org>
Authored: Tue Aug 14 15:53:09 2018 -0400
Committer: Rob Tompkins <ch...@apache.org>
Committed: Tue Aug 14 15:53:09 2018 -0400
----------------------------------------------------------------------
.../org/apache/commons/lang3/math/NumberUtils.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/4f4e2b06/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
index 821ee66..2522aca 100644
--- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
+++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
@@ -437,7 +437,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(BigDecimal value) {
+ public static BigDecimal toScaledBigDecimal(final BigDecimal value) {
return toScaledBigDecimal(value, INTEGER_TWO, RoundingMode.HALF_EVEN);
}
@@ -453,7 +453,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(BigDecimal value, int scale, RoundingMode roundingMode) {
+ public static BigDecimal toScaledBigDecimal(final BigDecimal value, final int scale, final RoundingMode roundingMode) {
if (value == null) {
return BigDecimal.ZERO;
}
@@ -475,7 +475,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(Float value) {
+ public static BigDecimal toScaledBigDecimal(final Float value) {
return toScaledBigDecimal(value, INTEGER_TWO, RoundingMode.HALF_EVEN);
}
@@ -491,7 +491,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(Float value, int scale, RoundingMode roundingMode) {
+ public static BigDecimal toScaledBigDecimal(final Float value, final int scale, final RoundingMode roundingMode) {
if (value == null) {
return BigDecimal.ZERO;
}
@@ -514,7 +514,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(Double value) {
+ public static BigDecimal toScaledBigDecimal(final Double value) {
return toScaledBigDecimal(value, INTEGER_TWO, RoundingMode.HALF_EVEN);
}
@@ -530,7 +530,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(Double value, int scale, RoundingMode roundingMode) {
+ public static BigDecimal toScaledBigDecimal(final Double value, final int scale, final RoundingMode roundingMode) {
if (value == null) {
return BigDecimal.ZERO;
}
@@ -553,7 +553,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(String value) {
+ public static BigDecimal toScaledBigDecimal(final String value) {
return toScaledBigDecimal(value, INTEGER_TWO, RoundingMode.HALF_EVEN);
}
@@ -569,7 +569,7 @@ public class NumberUtils {
* @return the scaled, with appropriate rounding, <code>BigDecimal</code>.
* @since 3.8
*/
- public static BigDecimal toScaledBigDecimal(String value, int scale, RoundingMode roundingMode) {
+ public static BigDecimal toScaledBigDecimal(final String value, final int scale, final RoundingMode roundingMode) {
if (value == null) {
return BigDecimal.ZERO;
}