--- old/src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java 2021-01-09 11:35:57.628924333 -0800 +++ new/src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java 2021-01-09 11:35:57.328926694 -0800 @@ -128,7 +128,7 @@ * locks: a deserialized lock is in the unlocked state, regardless of * its state when serialized. * - *

Sample usages. Here is a code sketch showing how to perform + *

Sample usages. Here is a code sketch showing how to perform * lock downgrading after updating a cache (exception handling is * particularly tricky when handling multiple locks in a non-nested * fashion): @@ -149,7 +149,7 @@ * // Recheck state because another thread might have * // acquired write lock and changed state before we did. * if (!cacheValid) { - * data = ... + * data = ...; * cacheValid = true; * } * // Downgrade by acquiring read lock before releasing write lock