RFR: 8294456: Fix misleading-indentation warnings in JDK

Daniel Fuchs dfuchs at openjdk.org
Thu Sep 29 13:44:26 UTC 2022


On Thu, 29 Sep 2022 13:11:03 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> This fixes misleading indentations, which allows enabling the (currently disabled) `misleading-indentation` warning flag on two `.gmk` files.

src/java.base/share/native/libfdlibm/e_asin.c line 102:

> 100:             } else
> 101:                 t = x*x;
> 102:             p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));

should we add an opening brace after the `else` (and close it before line 102) to make it more obvious that there is no problem with the indentation?

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

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



More information about the client-libs-dev mailing list