[ 
https://issues.apache.org/jira/browse/LANG-1617?focusedWorklogId=515102&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-515102
 ]

ASF GitHub Bot logged work on LANG-1617:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Nov/20 17:11
            Start Date: 21/Nov/20 17:11
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on a change in pull request #659:
URL: https://github.com/apache/commons-lang/pull/659#discussion_r528219181



##########
File path: src/main/java/org/apache/commons/lang3/math/NumberUtils.java
##########
@@ -32,43 +32,43 @@
 public class NumberUtils {
 
     /** Reusable Long constant for zero. */
-    public static final Long LONG_ZERO = Long.valueOf(0L);
+    public static final Long LONG_ZERO = 0L;
     /** Reusable Long constant for one. */
-    public static final Long LONG_ONE = Long.valueOf(1L);
+    public static final Long LONG_ONE = 1L;
     /** Reusable Long constant for minus one. */
-    public static final Long LONG_MINUS_ONE = Long.valueOf(-1L);
+    public static final Long LONG_MINUS_ONE = -1L;
     /** Reusable Integer constant for zero. */
-    public static final Integer INTEGER_ZERO = Integer.valueOf(0);
+    public static final Integer INTEGER_ZERO = 0;
     /** Reusable Integer constant for one. */
-    public static final Integer INTEGER_ONE = Integer.valueOf(1);
+    public static final Integer INTEGER_ONE = 1;
     /** Reusable Integer constant for two */
-    public static final Integer INTEGER_TWO = Integer.valueOf(2);
+    public static final Integer INTEGER_TWO = 2;
     /** Reusable Integer constant for minus one. */
-    public static final Integer INTEGER_MINUS_ONE = Integer.valueOf(-1);
+    public static final Integer INTEGER_MINUS_ONE = -1;
     /** Reusable Short constant for zero. */
-    public static final Short SHORT_ZERO = Short.valueOf((short) 0);
+    public static final Short SHORT_ZERO = (short) 0;
     /** Reusable Short constant for one. */
-    public static final Short SHORT_ONE = Short.valueOf((short) 1);
+    public static final Short SHORT_ONE = (short) 1;
     /** Reusable Short constant for minus one. */
-    public static final Short SHORT_MINUS_ONE = Short.valueOf((short) -1);
+    public static final Short SHORT_MINUS_ONE = (short) -1;
     /** Reusable Byte constant for zero. */
-    public static final Byte BYTE_ZERO = Byte.valueOf((byte) 0);
+    public static final Byte BYTE_ZERO = (byte) 0;
     /** Reusable Byte constant for one. */
-    public static final Byte BYTE_ONE = Byte.valueOf((byte) 1);
+    public static final Byte BYTE_ONE = (byte) 1;
     /** Reusable Byte constant for minus one. */
-    public static final Byte BYTE_MINUS_ONE = Byte.valueOf((byte) -1);
+    public static final Byte BYTE_MINUS_ONE = (byte) -1;
     /** Reusable Double constant for zero. */
-    public static final Double DOUBLE_ZERO = Double.valueOf(0.0d);
+    public static final Double DOUBLE_ZERO = 0.0d;
     /** Reusable Double constant for one. */
-    public static final Double DOUBLE_ONE = Double.valueOf(1.0d);
+    public static final Double DOUBLE_ONE = 1.0d;

Review comment:
       Hi @arturobernalg 
   Thank you for your PR.
   -1: For low-level libraries like most Apache Commons libraries, I like to 
keep boxing and unboxing explicit to make it easier to understand where objects 
are created and unwrapped.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 515102)
    Time Spent: 20m  (was: 10m)

> Improve/clean  math package
> ---------------------------
>
>                 Key: LANG-1617
>                 URL: https://issues.apache.org/jira/browse/LANG-1617
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.math.*
>            Reporter: Arturo Bernal
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Improve the class in the org.apache.commons.lang3.math opackage



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to