RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace

Kim Barrett kbarrett at openjdk.org
Mon Mar 10 11:06:00 UTC 2025


On Mon, 10 Mar 2025 08:57:11 GMT, David Linus Briemann <duke at openjdk.org> wrote:

> As for the coding style (indentation), I followed the official style guides to define this.
> 
> For C++ we have https://github.com/openjdk/jdk/blob/master/doc/hotspot-style.md#whitespace
> 
> which states:
> 
> > Indentation levels are two columns.

The HotSpot Style Guide applies to HotSpot native code.  It doesn't apply to native code in the rest of the JDK.
(For one thing, HotSpot is (almost?) entirely C++, while much of the native code in the rest of the JDK is C.
And even a casual perusal will find large swaths of HSG violations in non-HotSpot code.)

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

PR Comment: https://git.openjdk.org/jdk/pull/23693#issuecomment-2710204389


More information about the build-dev mailing list