You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we see into the implementation, the method returns the first characters that can be parsed as an integer and it stops as soon as there is something else.
I propose to use the NumberParser to parse the String and raise an exception if the complete String does not correspond to an integer.
The text was updated successfully, but these errors were encountered:
The comment of the method says the following:
But is not clear. Does returns the integer represented by String, what happens if the String is not an integer.
As an example, let's look at this:
If we see into the implementation, the method returns the first characters that can be parsed as an integer and it stops as soon as there is something else.
I propose to use the NumberParser to parse the String and raise an exception if the complete String does not correspond to an integer.
The text was updated successfully, but these errors were encountered: