[jira] Created: (LANG-461) Add toByte and toShort methods to NumberUtils

View: New views
4 Messages — Rating Filter:   Alert me  

[jira] Created: (LANG-461) Add toByte and toShort methods to NumberUtils

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Add toByte and toShort methods to NumberUtils
---------------------------------------------

                 Key: LANG-461
                 URL: https://issues.apache.org/jira/browse/LANG-461
             Project: Commons Lang
          Issue Type: New Feature
    Affects Versions: 2.4
            Reporter: Michael
            Priority: Minor


NumberUtils are missing methods for toByte and toShort same as for the other datatypes.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LANG-461) Add toByte and toShort methods to NumberUtils

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/LANG-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-461:
-------------------------------

    Fix Version/s: 3.0

Patches welcome.

> Add toByte and toShort methods to NumberUtils
> ---------------------------------------------
>
>                 Key: LANG-461
>                 URL: https://issues.apache.org/jira/browse/LANG-461
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Michael
>            Priority: Minor
>             Fix For: 3.0
>
>
> NumberUtils are missing methods for toByte and toShort same as for the other datatypes.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LANG-461) Add toByte and toShort methods to NumberUtils

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/LANG-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Ricard updated LANG-461:
--------------------------------

    Attachment: LANG-461.patch

Here is a patch. Any comments are welcome.
Note: the javadoc does not contain the "@since" information

> Add toByte and toShort methods to NumberUtils
> ---------------------------------------------
>
>                 Key: LANG-461
>                 URL: https://issues.apache.org/jira/browse/LANG-461
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Michael
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: LANG-461.patch
>
>
> NumberUtils are missing methods for toByte and toShort same as for the other datatypes.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (LANG-461) Add toByte and toShort methods to NumberUtils

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/LANG-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-461.
------------------------------

    Resolution: Fixed

Thanks Vincent, patch applied.

svn ci -m "Applying patch from LANG-461 from Vincent Ricard to add toByte and toShort methods to NumberUtils" src
Sending        src/java/org/apache/commons/lang/math/NumberUtils.java
Sending        src/test/org/apache/commons/lang/math/NumberUtilsTest.java
Transmitting file data ..
Committed revision 788276.

> Add toByte and toShort methods to NumberUtils
> ---------------------------------------------
>
>                 Key: LANG-461
>                 URL: https://issues.apache.org/jira/browse/LANG-461
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Michael Osipov
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: LANG-461.patch
>
>
> NumberUtils are missing methods for toByte and toShort same as for the other datatypes.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.