From 8b20aa919b810fc5b3856b392bd0d8b1f882c895 Mon Sep 17 00:00:00 2001 From: Pavel Rappo Date: Tue, 21 Feb 2023 13:11:26 +0000 Subject: [PATCH] 8302981: Fix a typo in the doc comment for java.lang.Record.equals Reviewed-by: jpai --- src/java.base/share/classes/java/lang/Record.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/lang/Record.java b/src/java.base/share/classes/java/lang/Record.java index 2f8bd60ac5b..869cc221274 100644 --- a/src/java.base/share/classes/java/lang/Record.java +++ b/src/java.base/share/classes/java/lang/Record.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2023, 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 @@ -115,7 +115,7 @@ public abstract class Record { *
  • If the component is of a reference type, the component is * considered equal if and only if {@link * java.util.Objects#equals(Object,Object) - * Objects.equals(this.c, r.c} would return {@code true}. + * Objects.equals(this.c, r.c)} would return {@code true}. * *
  • If the component is of a primitive type, using the * corresponding primitive wrapper class {@code PW} (the