--- old/src/java.base/share/classes/java/lang/String.java 2020-03-13 15:38:52.000000000 +0000 +++ new/src/java.base/share/classes/java/lang/String.java 2020-03-13 15:38:52.000000000 +0000 @@ -1383,7 +1383,7 @@ * integer k less than {@code len} such that: *
      * Character.toLowerCase(Character.toUpperCase(this.charAt(toffset+k))) !=
-     Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
+     * Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
      * 
* * @@ -2445,12 +2445,12 @@ *
{@code
      *     List strings = List.of("Java", "is", "cool");
      *     String message = String.join(" ", strings);
-     *     //message returned is: "Java is cool"
+     *     // message returned is: "Java is cool"
      *
      *     Set strings =
      *         new LinkedHashSet<>(List.of("Java", "is", "very", "cool"));
      *     String message = String.join("-", strings);
-     *     //message returned is: "Java-is-very-cool"
+     *     // message returned is: "Java-is-very-cool"
      * }
* * Note that if an individual element is {@code null}, then {@code "null"} is added. --- old/src/java.base/share/classes/java/nio/file/DirectoryStream.java 2020-03-13 15:38:53.000000000 +0000 +++ new/src/java.base/share/classes/java/nio/file/DirectoryStream.java 2020-03-13 15:38:53.000000000 +0000 @@ -103,7 +103,7 @@ * result.add(entry); * } * } catch (DirectoryIteratorException ex) { - * // I/O error encounted during the iteration, the cause is an IOException + * // I/O error encountered during the iteration, the cause is an IOException * throw ex.getCause(); * } * return result; --- old/src/java.base/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java 2020-03-13 15:38:55.000000000 +0000 +++ new/src/java.base/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java 2020-03-13 15:38:55.000000000 +0000 @@ -190,7 +190,7 @@ * Suppose we want to write a file's MIME type as a user-defined attribute: *
      *    UserDefinedFileAttributeView view =
-     *        FIles.getFileAttributeView(path, UserDefinedFileAttributeView.class);
+     *        Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);
      *    view.write("user.mimetype", Charset.defaultCharset().encode("text/html"));
      * 
* --- old/src/java.base/share/classes/java/security/PKCS12Attribute.java 2020-03-13 15:38:56.000000000 +0000 +++ new/src/java.base/share/classes/java/security/PKCS12Attribute.java 2020-03-13 15:38:56.000000000 +0000 @@ -115,7 +115,7 @@ * * * @param encoded the attribute's ASN.1 DER encoding. It is cloned - * to prevent subsequent modificaion. + * to prevent subsequent modification. * * @throws NullPointerException if {@code encoded} is * {@code null} --- old/src/java.base/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java 2020-03-13 15:38:57.000000000 +0000 +++ new/src/java.base/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java 2020-03-13 15:38:57.000000000 +0000 @@ -405,7 +405,7 @@ *
      *  out.writeByte(2);              // identifies a ChronoLocalDateTime
      *  out.writeObject(toLocalDate());
-     *  out.witeObject(toLocalTime());
+     *  out.writeObject(toLocalTime());
      * 
* * @return the instance of {@code Ser}, not null --- old/src/java.base/share/classes/java/time/chrono/package-info.java 2020-03-13 15:38:58.000000000 +0000 +++ new/src/java.base/share/classes/java/time/chrono/package-info.java 2020-03-13 15:38:58.000000000 +0000 @@ -97,10 +97,10 @@ * *

Example

*

- * This example lists todays date for all of the available calendars. + * This example lists today's date for all of the available calendars. *

*
- *   // Enumerate the list of available calendars and print todays date for each.
+ *   // Enumerate the list of available calendars and print today's date for each.
  *       Set<Chronology> chronos = Chronology.getAvailableChronologies();
  *       for (Chronology chrono : chronos) {
  *           ChronoLocalDate date = chrono.dateNow();
--- old/src/java.base/share/classes/java/time/temporal/TemporalAccessor.java	2020-03-13 15:38:59.000000000 +0000
+++ new/src/java.base/share/classes/java/time/temporal/TemporalAccessor.java	2020-03-13 15:38:59.000000000 +0000
@@ -144,7 +144,7 @@
      * If unsupported, then an {@code UnsupportedTemporalTypeException} must be thrown.
      * 

* If the field is not a {@code ChronoField}, then the result of this method - * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessorl)} + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} * passing {@code this} as the argument. *

* Implementations must ensure that no observable state is altered when this --- old/src/java.base/share/classes/java/util/BitSet.java 2020-03-13 15:39:01.000000000 +0000 +++ new/src/java.base/share/classes/java/util/BitSet.java 2020-03-13 15:39:00.000000000 +0000 @@ -1054,7 +1054,7 @@ /** * Compares this object against the specified object. * The result is {@code true} if and only if the argument is - * not {@code null} and is a {@code Bitset} object that has + * not {@code null} and is a {@code BitSet} object that has * exactly the same set of bits set to {@code true} as this bit * set. That is, for every nonnegative {@code int} index {@code k}, *

((BitSet)obj).get(k) == this.get(k)
--- old/src/java.base/share/classes/java/util/Enumeration.java 2020-03-13 15:39:02.000000000 +0000 +++ new/src/java.base/share/classes/java/util/Enumeration.java 2020-03-13 15:39:01.000000000 +0000 @@ -88,7 +88,7 @@ * @apiNote * This method is intended to help adapt code that produces * {@code Enumeration} instances to code that consumes {@code Iterator} - * instances. For example, the {@link java.util.jar.JarFile#entries + * instances. For example, the {@link java.util.jar.JarFile#entries() * JarFile.entries()} method returns an {@code Enumeration}. * This can be turned into an {@code Iterator}, and then the * {@code forEachRemaining()} method can be used: @@ -98,7 +98,7 @@ * jarFile.entries().asIterator().forEachRemaining(entry -> { ... }); * }
* - * (Note that there is also a {@link java.util.jar.JarFile#stream + * (Note that there is also a {@link java.util.jar.JarFile#stream() * JarFile.stream()} method that returns a {@code Stream} of entries, * which may be more convenient in some cases.) * --- old/src/java.base/share/classes/java/util/Map.java 2020-03-13 15:39:03.000000000 +0000 +++ new/src/java.base/share/classes/java/util/Map.java 2020-03-13 15:39:02.000000000 +0000 @@ -732,8 +732,7 @@ * {@code null}, else returns the current value. * * @implSpec - * The default implementation is equivalent to, for this {@code - * map}: + * The default implementation is equivalent to, for this {@code map}: * *
 {@code
      * V v = map.get(key);
--- old/src/java.base/share/classes/java/util/StringJoiner.java	2020-03-13 15:39:04.000000000 +0000
+++ new/src/java.base/share/classes/java/util/StringJoiner.java	2020-03-13 15:39:04.000000000 +0000
@@ -77,7 +77,7 @@
     private int len;
 
     /**
-     * When overridden by the user to be non-null via {@link setEmptyValue}, the
+     * When overridden by the user to be non-null via {@link #setEmptyValue(CharSequence)}, the
      * string returned by toString() when no elements have yet been added.
      * When null, prefix + suffix is used as the empty value.
      */
--- old/src/java.base/share/classes/java/util/regex/Pattern.java	2020-03-13 15:39:05.000000000 +0000
+++ new/src/java.base/share/classes/java/util/regex/Pattern.java	2020-03-13 15:39:05.000000000 +0000
@@ -778,14 +778,13 @@
     implements java.io.Serializable
 {
 
-    /**
+    /*
      * Regular expression modifier values.  Instead of being passed as
      * arguments, they can also be passed as inline modifiers.
      * For example, the following statements have the same effect.
-     * 
-     * Pattern p1 = Pattern.compile("abc", Pattern.CASE_INSENSITIVE|Pattern.MULTILINE);
-     * Pattern p2 = Pattern.compile("(?im)abc", 0);
-     * 
+ * + * Pattern p1 = Pattern.compile("abc", Pattern.CASE_INSENSITIVE|Pattern.MULTILINE); + * Pattern p2 = Pattern.compile("(?im)abc", 0); */ /** --- old/src/java.base/share/classes/java/util/stream/Stream.java 2020-03-13 15:39:06.000000000 +0000 +++ new/src/java.base/share/classes/java/util/stream/Stream.java 2020-03-13 15:39:06.000000000 +0000 @@ -932,7 +932,7 @@ * additional synchronization is needed for a parallel reduction. * * @apiNote - * The following will accumulate strings into an ArrayList: + * The following will accumulate strings into a List: *
{@code
      *     List asList = stringStream.collect(Collectors.toList());
      * }
--- old/src/java.base/share/classes/java/util/stream/package-info.java 2020-03-13 15:39:07.000000000 +0000 +++ new/src/java.base/share/classes/java/util/stream/package-info.java 2020-03-13 15:39:07.000000000 +0000 @@ -316,7 +316,7 @@ * see the API note documented on the {@link java.util.stream.Stream#count count} * operation.) * - *

Many computations where one might be tempted to use side effects can be more + *

Many computations where one might be tempted to use side-effects can be more * safely and efficiently expressed without side-effects, such as using * reduction instead of mutable * accumulators. However, side-effects such as using {@code println()} for debugging @@ -445,7 +445,7 @@ * required. * *

The "widgets" examples shown earlier shows how reduction combines with - * other operations to replace for loops with bulk operations. If {@code widgets} + * other operations to replace for-loops with bulk operations. If {@code widgets} * is a collection of {@code Widget} objects, which have a {@code getWeight} method, * we can find the heaviest widget with: *

{@code
--- old/src/java.base/share/classes/javax/crypto/CryptoPolicyParser.java	2020-03-13 15:39:08.000000000 +0000
+++ new/src/java.base/share/classes/javax/crypto/CryptoPolicyParser.java	2020-03-13 15:39:08.000000000 +0000
@@ -49,8 +49,8 @@
  * 
{@code
  *   permission [, 
  *              [[, ][, 
- *              [, , ]]]];
+ *              [, , ]]]];
  * }
* * @author Sharon Liu --- old/src/java.base/share/classes/javax/security/cert/X509Certificate.java 2020-03-13 15:39:10.000000000 +0000 +++ new/src/java.base/share/classes/javax/security/cert/X509Certificate.java 2020-03-13 15:39:09.000000000 +0000 @@ -130,7 +130,7 @@ @Deprecated(since="9", forRemoval=true) public abstract class X509Certificate extends Certificate { - /* + /** * Constant to lookup in the Security properties file. * In the Security properties file the default implementation * for X.509 v3 is given as: --- old/src/java.compiler/share/classes/javax/tools/JavaFileManager.java 2020-03-13 15:39:11.000000000 +0000 +++ new/src/java.compiler/share/classes/javax/tools/JavaFileManager.java 2020-03-13 15:39:10.000000000 +0000 @@ -79,7 +79,7 @@ * section 3.3. Informally, this should be true: * * - *
  URI.{@linkplain java.net.URI#create create}(relativeName).{@linkplain java.net.URI#normalize normalize}().{@linkplain java.net.URI#getPath getPath}().equals(relativeName)
+ *
  URI.{@linkplain java.net.URI#create create}(relativeName).{@linkplain java.net.URI#normalize() normalize}().{@linkplain java.net.URI#getPath getPath}().equals(relativeName)
* *

All methods in this interface might throw a SecurityException. *