Docs: lambdas in examples
Probably the biggest formatting improvement over other formats in java is that lambda's really are prettier. Most of the other formats were designed prior to the existence and things like Sun, or Google's just never seem to have caught up.
P.S. would be nice to have the example in the README
The place would be https://github.com/jhipster/prettier-java/tree/main/website/docs
Maybe one can pickup some examples from our try to switch to prettier-java? 2k files can't be wrong 😅 https://github.com/JabRef/jabref-koppor/pull/717
With the playground the xample from https://github.com/palantir/palantir-java-format#motivation--examples are as follows:
private static void configureResolvedVersionsWithVersionMapping(
Project project
) {
project
.getPluginManager()
.withPlugin("maven-publish", (plugin) -> {
project
.getExtensions()
.getByType(PublishingExtension.class)
.getPublications()
.withType(MavenPublication.class)
.configureEach((publication) ->
publication.versionMapping((mapping) -> {
mapping.allVariants(
VariantVersionMappingStrategy::fromResolutionResult
);
})
);
});
}
var foo = SomeType.builder()
.thing1(thing1)
.thing2(thing2)
.thing3(thing3)
.build();
Two spaces need to be kept for the public homepage (as they are already there) --> https://www.jhipster.tech/prettier-java/docs
Strongly related: https://github.com/jhipster/prettier-java/issues/627