Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8245658: Arrays.java has two occurrences of bad unicode constants in …
…Javadoc

This patch fixes two instances of bad unicode formatting in the javadoc for Arrays.java where the null character constant was incorrectly specified.

Reviewed-by: jlaskey, lancea, prappo, dfuchs
  • Loading branch information
c-cleary authored and pconcannon committed Jun 3, 2020
1 parent a809ff0 commit 10874e0291182b61a7c062a930c063992b041cae
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.base/share/classes/java/util/Arrays.java
@@ -3616,7 +3616,7 @@ public static long[] copyOf(long[] original, int newLength) {
* so the copy has the specified length. For all indices that are valid
* in both the original array and the copy, the two arrays will contain
* identical values. For any indices that are valid in the copy but not
* the original, the copy will contain {@code '\\u000'}. Such indices
* the original, the copy will contain {@code '\u005cu0000'}. Such indices
* will exist if and only if the specified length is greater than that of
* the original array.
*
@@ -3942,7 +3942,7 @@ public static long[] copyOfRange(long[] original, int from, int to) {
* subsequent elements in the copy. The final index of the range
* ({@code to}), which must be greater than or equal to {@code from},
* may be greater than {@code original.length}, in which case
* {@code '\\u000'} is placed in all elements of the copy whose index is
* {@code '\u005cu0000'} is placed in all elements of the copy whose index is
* greater than or equal to {@code original.length - from}. The length
* of the returned array will be {@code to - from}.
*

0 comments on commit 10874e0

Please sign in to comment.