+1 OPTION 2: Palantir Java Format

I choose Palantir Java Format because, based on your examples, it makes
fewer changes to existing code and offers more flexibility compared to
Google Java Format. This adaptability will better prepare us to handle
potential issues that might arise in the future.

Best Regards.
Jianbin Chen, github-id: funky-eyes

On Fri, Jun 6, 2025, 13:19 Jiangke Wu <xingfude...@apache.org> wrote:

> +1 OPTION 2: Palantir Java Format
>
> Its vertical alignment and balanced whitespace create a cleaner, more
> modern look. The improved visual organization, especially for complex
> statements and method chains, and it enhances readability while preserving
> AOSP’s essence. This aligns better with contemporary development
> expectations and tooling.
>
> Best Regards,
> Jiangke Wu(xingfudeshi)
>
>
> On Fri, Jun 6, 2025 at 1:02 PM Yongjun Hong <yongj...@apache.org> wrote:
>
> > Dear Seata Community,
> > We are planning to apply Spotless to our project and would like to decide
> > on a consistent code style.
> > Please take a moment to review each style below and cast your vote.
> >
> >
> > OPTION 1: Google Java Format (AOSP Style)
> >
> > - Based on Google's Android Open Source Project formatting standards
> > - Most widely adopted formatting style in the Java community
> > - Strict 100-character line limit
> > - Consistent indentation and spacing rules
> > - Well-established and battle-tested across many open source projects
> > - Reference implementation:
> > https://github.com/YongGoose/incubator-seata/pull/6
> >
> >
> > OPTION 2: Palantir Java Format
> >
> > - Built upon Google's formatter but addresses some of its limitations
> > - More flexible handling of method chaining and fluent APIs
> > - Better formatting for complex lambda expressions and streams
> > - Improved readability for certain coding patterns
> > - Less restrictive in some formatting scenarios while maintaining
> > consistency
> > - Reference implementation:
> > https://github.com/YongGoose/incubator-seata/pull/7
> >
> >
> > COMPARISON SUMMARY
> >
> > Popularity: Google-AOSP is more widely adopted in the Java ecosystem
> > Flexibility: Palantir offers more nuanced formatting for modern Java
> > patterns
> >
> >
> > VOTING PROCESS
> >
> > This vote will remain open for 72 hours (3 days) from the time of this
> > email.
> > Voting period: June 6, 2025 - June 9, 2025 23:59 UTC
> > Please reply to this email with your preference.
> >
> >
> > Best regards,
> > Yongjun Hong / github : YongGoose
> >
>

Reply via email to