I am transferring GeoNetwork codebase to to geonetwork/geonetwork
today, and wanted to point out something cool.
GeoNetwork 5 is based on spring-boot and Java 21 and benefits from lots of lambda statements … which is something google-java-format struggles with.
I have changed spotless from applying google-java-format to applying palantir java format. I really like the result, and having a formatter tidy up code as part of the build.
The result is 120 characters, 4 char indent, with less line breaks for lambdas and anonymous classes.
Credit to @aaime who is preparing a similar change to GeoTools.