src/java.base/share/classes/java/lang/Long.java
changeset 53018 8bf9268df0e2
parent 52914 4fa75d8ad418
child 53019 4ddd3c410a85
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
  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;