Skip to content

Add palantir-java-format as a formatter#135

Merged
svix-mman merged 1 commit intomainfrom
mendy/add-palantir-java-format
Oct 6, 2025
Merged

Add palantir-java-format as a formatter#135
svix-mman merged 1 commit intomainfrom
mendy/add-palantir-java-format

Conversation

@svix-mman
Copy link
Contributor

@svix-mman svix-mman commented Oct 6, 2025

We currently use google-java-format, and it's quite ugly.
Instead I am going with palantir-java-format, it looks much nicer.

I am keeping both, and for now I will only use palantir-java-format on the code samples

Before

var response =
        svix.getAuthentication()
                .appPortalAccess(
                        "app_1srOrx2ZWZBpBUvZwXKQmoEYga2",
                        new AppPortalAccessIn()
                                .application(
                                        new ApplicationIn()
                                                .metadata(Map.of())
                                                .name("My first application")
                                                .rateLimit(1L)
                                                .uid("unique-identifier"))
                                .capabilities(
                                        Set.of(
                                                AppPortalCapability.VIEW_BASE,
                                                AppPortalCapability.VIEW_ENDPOINT_SECRET))
                                .expiry(1L)
                                .featureFlags(Set.of())
                                .readOnly(true)
                                .sessionId("user_1FB8"));

After

var response = svix.getAuthentication()
        .appPortalAccess(
            "app_1srOrx2ZWZBpBUvZwXKQmoEYga2",
            new AppPortalAccessIn()
                .application(new ApplicationIn()
                    .metadata(Map.of())
                    .name("My first application")
                    .rateLimit(1L)
                    .uid("unique-identifier"))
                .capabilities(
                    Set.of(AppPortalCapability.VIEW_BASE, AppPortalCapability.VIEW_ENDPOINT_SECRET))
                .expiry(1L)
                .featureFlags(Set.of())
                .readOnly(true)
                .sessionId("user_1FB8"));

@svix-mman svix-mman requested a review from a team as a code owner October 6, 2025 01:19
@svix-mman svix-mman merged commit 3e8a7f8 into main Oct 6, 2025
3 checks passed
@svix-mman svix-mman deleted the mendy/add-palantir-java-format branch October 6, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants