equal
deleted
inserted
replaced
1246 int radix = 10; |
1246 int radix = 10; |
1247 int index = 0; |
1247 int index = 0; |
1248 boolean negative = false; |
1248 boolean negative = false; |
1249 Long result; |
1249 Long result; |
1250 |
1250 |
1251 if (nm.length() == 0) |
1251 if (nm.isEmpty()) |
1252 throw new NumberFormatException("Zero length string"); |
1252 throw new NumberFormatException("Zero length string"); |
1253 char firstChar = nm.charAt(0); |
1253 char firstChar = nm.charAt(0); |
1254 // Handle sign, if present |
1254 // Handle sign, if present |
1255 if (firstChar == '-') { |
1255 if (firstChar == '-') { |
1256 negative = true; |
1256 negative = true; |