René's URL Explorer Experiment


Title: Reflow long strings in Eclipse's Format, as on the command line by abashev · Pull Request #235 · openjavaformat/open-java-format · GitHub

Open Graph Title: Reflow long strings in Eclipse's Format, as on the command line by abashev · Pull Request #235 · openjavaformat/open-java-format

X Title: Reflow long strings in Eclipse's Format, as on the command line by abashev · Pull Request #235 · openjavaformat/open-java-format

Description: Builds on #233; merge that first. Independent of #234. Eclipse's Format of a Java editor now reflows the long strings in the selected code, as the command line, formatDiff and IntelliJ IDEA do (ADR-001). It formats the compilation unit with its comments over the selected ranges, and went through Formatter.getFormatReplacements, which never reflows (#219). It now calls getFormatAndReflowReplacements, the method --output-replacements and the in-process service share since #232, which after #233 reflows only the strings in the code that formatting the ranges rewrites. What changes for users Format in a Java editor: a long string in the selection is wrapped, as open-java-format --character-ranges wraps it. Strings outside the selection stay as they are. Imports are not touched, as before. Snippets: nothing. The code Eclipse formats when it inserts something (statements, expressions, class bodies) is wrapped in a dummy class, and toReplacements accepts only changes to whitespace, which reflowing a string is not. Tests The plugin had no tests; it gets JUnit and AssertJ for SnippetFormatterTest: reflowsTheLongStringOfTheRangeOnly: a compilation unit with two long strings and a range over one; that one is wrapped, the other stays. On the code of #233 it fails. leavesTheLongStringOfAStatementSnippet: a statement snippet keeps its long string. JDK 21: ./gradlew check passes. JDK 25: :open-java-format-eclipse-plugin:test passes.

Open Graph Description: Builds on #233; merge that first. Independent of #234. Eclipse's Format of a Java editor now reflows the long strings in the selected code, as the command line, formatDiff and IntelliJ IDEA do ...

X Description: Builds on #233; merge that first. Independent of #234. Eclipse's Format of a Java editor now reflows the long strings in the selected code, as the command line, formatDiff and IntelliJ IDEA...

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

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:853f20b6-0b36-edbb-9a73-4633358e938c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id974A:20C35B:7DE647:A78001:6AFBD1C3
html-safe-nonce95df258e3b2ffedcbbf4a11481f2667145d2e1c5e24a6b499574196bb292dc20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzRBOjIwQzM1Qjo3REU2NDc6QTc4MDAxOjZBRkJEMUMzIiwidmlzaXRvcl9pZCI6IjU3NTY1MjkyNTgyODEwMzAwODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc3b08adbb0c55ca5bc137b2b14a08273d72395a36f124cf711f43c75dfb56369
hovercard-subject-tagpull_request:5316140440
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/235/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:altBuilds on #233; merge that first. Independent of #234. Eclipse's Format of a Java editor now reflows the long strings in the selected code, as the command line, formatDiff and IntelliJ IDEA do ...
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/235/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%2F235%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%2F235%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/235/files
Reloadhttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files
Reloadhttps://redirect.github.com/openjavaformat/open-java-format/pull/235/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
abashev/Range-reflow-insidehttps://redirect.github.com/openjavaformat/open-java-format/tree/abashev/Range-reflow-inside
abashev/Eclipse-range-reflowhttps://redirect.github.com/openjavaformat/open-java-format/tree/abashev/Eclipse-range-reflow
Conversation 0 https://redirect.github.com/openjavaformat/open-java-format/pull/235
Commits 1 https://redirect.github.com/openjavaformat/open-java-format/pull/235/commits
Checks 13 https://redirect.github.com/openjavaformat/open-java-format/pull/235/checks
Files changed https://redirect.github.com/openjavaformat/open-java-format/pull/235/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files
Reflow long strings in Eclipse's Format, as on the command line https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#top
Show all changes 1 commit https://redirect.github.com/openjavaformat/open-java-format/pull/235/files
86741cf Reflow long strings in the Eclipse plugin's ranges, as on the command… abashev Nov 14, 2026 https://redirect.github.com/openjavaformat/open-java-format/pull/235/commits/86741cf6fb7652b29e456bca10a00ca8e63f6854
Clear filters https://redirect.github.com/openjavaformat/open-java-format/pull/235/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files
build.gradle https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-a2a2bc05d7aa0ad03d1c79e8a0413a83b1b5c3c6bdeb831de295c3978a3f425e
SnippetFormatter.java https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-e1b7d247807015f3192a79166590239b8d83a08698ec122632798363770a3375
SnippetFormatterTest.java https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-271673667d16f6714697fac79527aeace6e877dd156b2acc29af50038c656b42
open-java-format-eclipse-plugin/build.gradlehttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-a2a2bc05d7aa0ad03d1c79e8a0413a83b1b5c3c6bdeb831de295c3978a3f425e
View file https://redirect.github.com/openjavaformat/open-java-format/blob/86741cf6fb7652b29e456bca10a00ca8e63f6854/open-java-format-eclipse-plugin/build.gradle
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/235/{{ revealButtonHref }}
https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-a2a2bc05d7aa0ad03d1c79e8a0413a83b1b5c3c6bdeb831de295c3978a3f425e
https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-a2a2bc05d7aa0ad03d1c79e8a0413a83b1b5c3c6bdeb831de295c3978a3f425e
...va-format-eclipse-plugin/src/main/java/com/palantir/javaformat/java/SnippetFormatter.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-e1b7d247807015f3192a79166590239b8d83a08698ec122632798363770a3375
View file https://redirect.github.com/openjavaformat/open-java-format/blob/86741cf6fb7652b29e456bca10a00ca8e63f6854/open-java-format-eclipse-plugin/src/main/java/com/palantir/javaformat/java/SnippetFormatter.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/235/{{ revealButtonHref }}
https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-e1b7d247807015f3192a79166590239b8d83a08698ec122632798363770a3375
https://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-e1b7d247807015f3192a79166590239b8d83a08698ec122632798363770a3375
...ormat-eclipse-plugin/src/test/java/com/palantir/javaformat/java/SnippetFormatterTest.javahttps://redirect.github.com/openjavaformat/open-java-format/pull/235/files#diff-271673667d16f6714697fac79527aeace6e877dd156b2acc29af50038c656b42
View file https://redirect.github.com/openjavaformat/open-java-format/blob/86741cf6fb7652b29e456bca10a00ca8e63f6854/open-java-format-eclipse-plugin/src/test/java/com/palantir/javaformat/java/SnippetFormatterTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/openjavaformat/open-java-format/pull/235/{{ revealButtonHref }}
Please reload this pagehttps://redirect.github.com/openjavaformat/open-java-format/pull/235/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.