René's URL Explorer Experiment


Title: Fix only the imports in the out-of-process fixImports by abashev · Pull Request #236 · openjavaformat/open-java-format · GitHub

Open Graph Title: Fix only the imports in the out-of-process fixImports by abashev · Pull Request #236 · openjavaformat/open-java-format

X Title: Fix only the imports in the out-of-process fixImports by abashev · Pull Request #236 · openjavaformat/open-java-format

Description: Closes #221. Independent of the other open pull requests; based on 21.X.X. BootstrappingFormatterService.fixImports and NativeImageFormatterService.fixImports ran Main - with no flags, as formatSourceReflowStringsAndFixImports does: the imports were fixed, and the whole file was laid out and its long strings reflowed along with them. FormatterServiceImpl.fixImports, in process, fixes only the imports. Both out-of-process services now pass --fix-imports-only. What changes for users Nothing calls fixImports through these services today. It is what an import optimizer in the IntelliJ plugin would call on every Optimize imports (#222, ADR-003); palantir-java-format's optimizer was removed as slow because of this. Tests The input is the one from #221: three imports, one unused, and a class body that is not formatted. JvmFormatterServicesTest (new): fixImports on the in-process and the bootstrapping services. It needs no native binary, so it runs in every build, on every JDK. FormatterServicesTest.fixes_only_the_imports: on the bootstrapping and native services, in the native jobs. On 21.X.X the bootstrapping and native runs fail, with the whole file formatted; the in-process one passes. With the change: JDK 21: ./gradlew check passes. JDK 25: :open-java-format-jdk-bootstrap:test passes. -PnativeImage=true :open-java-format-jdk-bootstrap:test (macOS aarch64, GraalVM 25): 10 of 10 in FormatterServicesTest and 2 of 2 in JvmFormatterServicesTest pass.

Open Graph Description: Closes #221. Independent of the other open pull requests; based on 21.X.X. BootstrappingFormatterService.fixImports and NativeImageFormatterService.fixImports ran Main - with no flags, as formatSou...

X Description: Closes #221. Independent of the other open pull requests; based on 21.X.X. BootstrappingFormatterService.fixImports and NativeImageFormatterService.fixImports ran Main - with no flags, as formatSou...

Opengraph URL: https://github.com/openjavaformat/open-java-format/pull/236

X: @github

direct link

Domain: redirect.github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:043b4c3a-1bbc-e335-de2e-c866c16656e5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA0F8:22D3B5:31F3A:422CA:6AFBD83E
html-safe-nonce2cc12e0d1203ab4955901d6e6257e60f2b7e275bec8525309fea34a5f9699b98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEY4OjIyRDNCNTozMUYzQTo0MjJDQTo2QUZCRDgzRSIsInZpc2l0b3JfaWQiOiI4NjU5MDIzOTA1ODY5NzgxMDU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac517efc52cd097a1339d08f2146011d29d8a9f292f5a62332e01a890aa89bd9e1
hovercard-subject-tagpull_request:5316192576
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/openjavaformat/open-java-format/pull/236/files
twitter:imagehttps://avatars.githubusercontent.com/u/214171?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/214171?s=400&v=4
og:image:altCloses #221. Independent of the other open pull requests; based on 21.X.X. BootstrappingFormatterService.fixImports and NativeImageFormatterService.fixImports ran Main - with no flags, as formatSou...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/openjavaformat/open-java-format git https://github.com/openjavaformat/open-java-format.git
octolytics-dimension-user_id325177626
octolytics-dimension-user_loginopenjavaformat
octolytics-dimension-repository_id1288055459
octolytics-dimension-repository_nwoopenjavaformat/open-java-format
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id214273098
octolytics-dimension-repository_parent_nwopalantir/palantir-java-format
octolytics-dimension-repository_network_root_id214273098
octolytics-dimension-repository_network_root_nwopalantir/palantir-java-format
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release820be804f18e1ef3940bd74a00d41d73d02e2b91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fopen-java-format%2Fpull%2F236%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fopen-java-format%2Fpull%2F236%2Ffiles
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=openjavaformat%2Fopen-java-format
Reloadhttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Reloadhttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Reloadhttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
openjavaformathttps://redirect.github.com/openjavaformat
open-java-formathttps://redirect.github.com/openjavaformat/open-java-format
Codehttps://redirect.github.com/openjavaformat/open-java-format
Issues30 (30)https://redirect.github.com/openjavaformat/open-java-format/issues
Pull requests5 (5)https://redirect.github.com/openjavaformat/open-java-format/pulls
Discussionshttps://redirect.github.com/openjavaformat/open-java-format/discussions
Actionshttps://redirect.github.com/openjavaformat/open-java-format/actions
Security and qualityhttps://redirect.github.com/openjavaformat/open-java-format/security
Insightshttps://redirect.github.com/openjavaformat/open-java-format/pulse
Sign up for GitHub https://redirect.github.com/signup?return_to=%2Fopenjavaformat%2Fopen-java-format%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2Fopenjavaformat%2Fopen-java-format%2Fissues%2Fnew%2Fchoose
abashevhttps://redirect.github.com/abashev
21.X.Xhttps://redirect.github.com/openjavaformat/open-java-format/tree/21.X.X
abashev/Fix-imports-out-of-processhttps://redirect.github.com/openjavaformat/open-java-format/tree/abashev/Fix-imports-out-of-process
Conversation 0 https://redirect.github.com/openjavaformat/open-java-format/pull/236
Commits 2 https://redirect.github.com/openjavaformat/open-java-format/pull/236/commits
Checks 17 https://redirect.github.com/openjavaformat/open-java-format/pull/236/checks
Files changed https://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Fix only the imports in the out-of-process fixImports https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#top
Show all changes 2 commits https://redirect.github.com/openjavaformat/open-java-format/pull/236/files
05ed5dc Fix only the imports in the out-of-process fixImports abashev Nov 14, 2026 https://redirect.github.com/openjavaformat/open-java-format/pull/236/commits/05ed5dc2bba00f64975176b0555186b0cd840c7a
7c38ef0 Merge remote-tracking branch 'origin/21.X.X' into abashev/Fix-imports… abashev Nov 15, 2026 https://redirect.github.com/openjavaformat/open-java-format/pull/236/commits/7c38ef09094719c968999d80225c6e372ecfc6e9
Clear filters https://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
BootstrappingFormatterService.java https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
NativeImageFormatterService.java https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
FormatterServicesTest.java https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
JvmFormatterServicesTest.java https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-099d664ec5fc316eb9ecd5a48d16616c4c0db7ec45085a944d9789389a975c17
fix-imports.input https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-a0f4f395f5a8881de20519acf1364486dfb58ba838a707d4af06dae5859bb2fd
fix-imports.output https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-245d7a888eb6ef63df6fc4a2920e930b6773a3d5988960cd05cef18ecbf40539
...tstrap/src/main/java/com/palantir/javaformat/bootstrap/BootstrappingFormatterService.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/main/java/com/palantir/javaformat/bootstrap/BootstrappingFormatterService.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-1b8393c2c6dbe9ef0676356eb5c44176a9daeb00039ae32c7144efee19655739
...ootstrap/src/main/java/com/palantir/javaformat/bootstrap/NativeImageFormatterService.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/main/java/com/palantir/javaformat/bootstrap/NativeImageFormatterService.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-40904604aa1c7b5d67c99d9e34c8341953bf0b26964835329219155463e35797
...-jdk-bootstrap/src/test/java/com/palantir/javaformat/bootstrap/FormatterServicesTest.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/test/java/com/palantir/javaformat/bootstrap/FormatterServicesTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
https://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-124f2692d8cf2b1114341e748c10142cb70d873610f7fb86fe1497251f1442e7
...k-bootstrap/src/test/java/com/palantir/javaformat/bootstrap/JvmFormatterServicesTest.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-099d664ec5fc316eb9ecd5a48d16616c4c0db7ec45085a944d9789389a975c17
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/test/java/com/palantir/javaformat/bootstrap/JvmFormatterServicesTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
open-java-format-jdk-bootstrap/src/test/resources/fix-imports.inputhttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-a0f4f395f5a8881de20519acf1364486dfb58ba838a707d4af06dae5859bb2fd
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/test/resources/fix-imports.input
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
open-java-format-jdk-bootstrap/src/test/resources/fix-imports.outputhttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files#diff-245d7a888eb6ef63df6fc4a2920e930b6773a3d5988960cd05cef18ecbf40539
View file https://redirect.github.com/openjavaformat/open-java-format/blob/7c38ef09094719c968999d80225c6e372ecfc6e9/open-java-format-jdk-bootstrap/src/test/resources/fix-imports.output
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/236/{{ revealButtonHref }}
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/236/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.