Skip to content

Conversation

@smowton
Copy link
Contributor

@smowton smowton commented Feb 11, 2020

These determine whether a string would pass parseInt/parseLong without throwing due to
containing inappropriate characters. The previous versions were broken because that check
was a mandatory part of Integer.parseInt and cousins, causing side-effects on the input
string.

These determine whether a string would pass parseInt/parseLong without throwing due to
containing inappropriate characters. The previous versions were broken because that check
was a mandatory part of Integer.parseInt and cousins, causing side-effects on the input
string.
* radix is already checked in-range.
* Exactly as Integer.parseInt, except s is already checked non-null, the
* radix is already checked in-range and 's' is known to be a valid integer
* according to isValidInt below
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ {@param s}

@smowton smowton merged commit 242aaff into master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants