From 3dd94f33b2dddf8ea28805499d110c2347476c19 Mon Sep 17 00:00:00 2001 From: Roland Westrelin Date: Fri, 9 Sep 2022 11:43:09 +0000 Subject: [PATCH] 8292671: Hotspot Style Guide should allow covariant returns Reviewed-by: jrose, kbarrett, stuefe, kvn, dholmes --- doc/hotspot-style.html | 1 - doc/hotspot-style.md | 2 -- 2 files changed, 3 deletions(-) diff --git a/doc/hotspot-style.html b/doc/hotspot-style.html index f0dfad09eb8..08a02b5bedd 100644 --- a/doc/hotspot-style.html +++ b/doc/hotspot-style.html @@ -448,7 +448,6 @@ while ( test_foo(args...) ) { // No, excess spaces around control

[[deprecated]] attribute (n3760) — Not relevant in HotSpot code.

  • Avoid most operator overloading, preferring named functions. When operator overloading is used, ensure the semantics conform to the normal expected behavior of the operation.

  • Avoid most implicit conversion constructors and (implicit or explicit) conversion operators. (Note that conversion to bool isn't needed in HotSpot code because of the "no implicit boolean" guideline.)

  • -
  • Avoid covariant return types.

  • Avoid goto statements.

  • Undecided Features

    diff --git a/doc/hotspot-style.md b/doc/hotspot-style.md index 9dfff6f3ff1..c755d77f767 100644 --- a/doc/hotspot-style.md +++ b/doc/hotspot-style.md @@ -1120,8 +1120,6 @@ normal expected behavior of the operation. conversion operators. (Note that conversion to `bool` isn't needed in HotSpot code because of the "no implicit boolean" guideline.) -* Avoid covariant return types. - * Avoid `goto` statements. ### Undecided Features