You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/04/06 19:29:17 UTC

[jira] [Closed] (LANG-1072) Duplicated "0x" check in createBigInteger in NumberUtils

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

Benedikt Ritter closed LANG-1072.
---------------------------------

> Duplicated "0x" check in createBigInteger in NumberUtils
> --------------------------------------------------------
>
>                 Key: LANG-1072
>                 URL: https://issues.apache.org/jira/browse/LANG-1072
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.math.*
>    Affects Versions: 3.3.2
>            Reporter: haiyang li
>            Priority: Minor
>             Fix For: 3.4
>
>
> I think there is typo in below line:
> {code:title= org.apache.commons.lang3.math.NumberUtils.java|borderStyle=solid}
>  if (str.startsWith("0x", pos) || str.startsWith("0x", pos)) { // hex
>             radix = 16;
>             pos += 2;
> }
> {code}
> The second "0x" should be "0X"
> {code:title= org.apache.commons.lang3.math.NumberUtils.java|borderStyle=solid}
>  if (str.startsWith("0x", pos) || str.startsWith("0X", pos)) { // hex
>             radix = 16;
>             pos += 2;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)