In #30392, we found out HexFormat is marked as value based class in Javadoc, 
but they do not have `@ValueBased`.


 * <p>
 * This is a <a 
href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>
 * class; use of identity-sensitive operations (including reference equality
 * ({@code ==}), identity hash code, or synchronization) on instances of
 * {@code HexFormat} may have unpredictable results and should be avoided.
 * The {@code equals} method should be used for comparisons.
 * <p>
 * This class is immutable and thread-safe.
 * <p>
 * Unless otherwise noted, passing a null argument to any method will cause a
 * {@link java.lang.NullPointerException NullPointerException} to be thrown.
 *
 * @since 17
 */


public final class HexFormat {

-------------

Commit messages:
 - 8380956: HexFormat shoud have @ValueBased

Changes: https://git.openjdk.org/jdk/pull/30444/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30444&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8380956
  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/30444.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30444/head:pull/30444

PR: https://git.openjdk.org/jdk/pull/30444

Reply via email to