8216413: Long.parseLong() is specified to throw unless string contains parsable {@code int}; should be {@code long}
authorigerasim
Wed, 09 Jan 2019 06:18:33 -0800
changeset 53206 b58517f0ea0e
parent 53205 8f79bae1a535
child 53207 b1c6d4d7f801
8216413: Long.parseLong() is specified to throw unless string contains parsable {@code int}; should be {@code long} Reviewed-by: clanger
src/java.base/share/classes/java/lang/Long.java
--- a/src/java.base/share/classes/java/lang/Long.java	Wed Jan 09 09:01:27 2019 -0500
+++ b/src/java.base/share/classes/java/lang/Long.java	Wed Jan 09 06:18:33 2019 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -731,7 +731,7 @@
      *             {@code endIndex} or if {@code endIndex} is greater than
      *             {@code s.length()}.
      * @throws     NumberFormatException  if the {@code CharSequence} does not
-     *             contain a parsable {@code int} in the specified
+     *             contain a parsable {@code long} in the specified
      *             {@code radix}, or if {@code radix} is either smaller than
      *             {@link java.lang.Character#MIN_RADIX} or larger than
      *             {@link java.lang.Character#MAX_RADIX}.