| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cf21f9bb-f315-f454-b256-a88cdf853631 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD86:2AEFEF:5120B:69C0C:6AFBD8EF |
| html-safe-nonce | 2aac2ab7fb84bf341d2832278a256c8a3420648411e416ff88c670772ea30a46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDg2OjJBRUZFRjo1MTIwQjo2OUMwQzo2QUZCRDhFRiIsInZpc2l0b3JfaWQiOiIxNzc4MzQwNzc1NTk1ODU4MTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8da79f15c7fc99650392f9deda8ade2f352d4a0e873af3c9371f4ad6594a0bd9 |
| hovercard-subject-tag | pull_request:4667084016 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/openjavaformat/open-java-format/pull/91/files |
| twitter:image | https://avatars.githubusercontent.com/u/214171?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/214171?s=400&v=4 |
| og:image:alt | Closes #24. The same problem is open upstream as google/google-java-format#1217, raised by JBang's author, and for the first line as google/google-java-format#1215 and google/google-java-format... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/openjavaformat/open-java-format git https://github.com/openjavaformat/open-java-format.git |
| octolytics-dimension-user_id | 325177626 |
| octolytics-dimension-user_login | openjavaformat |
| octolytics-dimension-repository_id | 1288055459 |
| octolytics-dimension-repository_nwo | openjavaformat/open-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 214273098 |
| octolytics-dimension-repository_parent_nwo | palantir/palantir-java-format |
| octolytics-dimension-repository_network_root_id | 214273098 |
| octolytics-dimension-repository_network_root_nwo | palantir/palantir-java-format |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fopen-java-format%2Fpull%2F91%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fopen-java-format%2Fpull%2F91%2Ffiles |
| Sign up | https://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 |
| Reload | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| Reload | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| Reload | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| openjavaformat | https://redirect.github.com/openjavaformat |
| open-java-format | https://redirect.github.com/openjavaformat/open-java-format |
| Code | https://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 |
| Discussions | https://redirect.github.com/openjavaformat/open-java-format/discussions |
| Actions | https://redirect.github.com/openjavaformat/open-java-format/actions |
| Security and quality | https://redirect.github.com/openjavaformat/open-java-format/security |
| Insights | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://redirect.github.com/login?return_to=%2Fopenjavaformat%2Fopen-java-format%2Fissues%2Fnew%2Fchoose |
| abashev | https://redirect.github.com/abashev |
| main | https://redirect.github.com/openjavaformat/open-java-format/tree/main |
| jbang-directives | https://redirect.github.com/openjavaformat/open-java-format/tree/jbang-directives |
|
Conversation
0
| https://redirect.github.com/openjavaformat/open-java-format/pull/91 |
|
Commits
1
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/commits |
|
Checks
16
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/checks |
|
Files changed
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| Please reload this page | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
|
Leave JBang directives at the top of a file as written
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#top |
|
Show all changes
1 commit
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
|
493d4d9
Leave JBang directives at the top of a file as written
abashev Sep 28, 2026
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/commits/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d |
|
Clear filters
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| Please reload this page | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
| Please reload this page | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
|
Formatter.java
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-fd61ca102fae096ccb3dcee9925025bec1ea7d5ab586817c56f186ffe2b705f0 |
|
JavaCommentsHelper.java
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
FileBasedTests.java
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-37a9ba04f49a2468318e11b2f38928b3751a1bb7b3c52f0c870eeba55be4b3be |
|
JBangDirectivesTest.java
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-b015776c7b7264272ef653ba51ecceef5b813a72a2c6b975be989ea2f388f4ad |
|
ojf-issue-24-jbang-compact-source.input
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-23c791229476d5300c434720d234b0971d12e751bba4c81e48564829ea5dc9de |
|
ojf-issue-24-jbang-compact-source.output
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-a3de3de1829633064c9dbaf02908ba9f3ff83b235f276167fb40e5192491ccf4 |
|
ojf-issue-24-jbang-package.input
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-21481abcf25e019e7e5df1773dbd3d80ca03be463bbfa5f268c734eb775169fd |
|
ojf-issue-24-jbang-package.output
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-0bf6c032e199f20dabe0a01084d23a57da9c1bb087ee925b81901a921d870a2e |
|
ojf-issue-24-jbang-script.input
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-34a0f5e6f3c2dca05ec3c560139eceda3f324982aec0d99a55b70b11925cf2a9 |
|
ojf-issue-24-jbang-script.output
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-1a2dbfbe7fe274fb3e0624846dddbb76ab45e3fe7f4e16ffa1664a825cde58c8 |
| open-java-format/src/main/java/com/palantir/javaformat/java/Formatter.java | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-fd61ca102fae096ccb3dcee9925025bec1ea7d5ab586817c56f186ffe2b705f0 |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/main/java/com/palantir/javaformat/java/Formatter.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-fd61ca102fae096ccb3dcee9925025bec1ea7d5ab586817c56f186ffe2b705f0 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-fd61ca102fae096ccb3dcee9925025bec1ea7d5ab586817c56f186ffe2b705f0 |
| open-java-format/src/main/java/com/palantir/javaformat/java/JavaCommentsHelper.java | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/main/java/com/palantir/javaformat/java/JavaCommentsHelper.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-421ad18fa6b5e59b0bf65aaf7ecf92f4ddacb70c33583d23eaf1d5cd5b7e1323 |
| open-java-format/src/test/java/com/palantir/javaformat/java/FileBasedTests.java | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-37a9ba04f49a2468318e11b2f38928b3751a1bb7b3c52f0c870eeba55be4b3be |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/java/com/palantir/javaformat/java/FileBasedTests.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-37a9ba04f49a2468318e11b2f38928b3751a1bb7b3c52f0c870eeba55be4b3be |
|
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-37a9ba04f49a2468318e11b2f38928b3751a1bb7b3c52f0c870eeba55be4b3be |
| open-java-format/src/test/java/com/palantir/javaformat/java/JBangDirectivesTest.java | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-b015776c7b7264272ef653ba51ecceef5b813a72a2c6b975be989ea2f388f4ad |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/java/com/palantir/javaformat/java/JBangDirectivesTest.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| ...t/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-compact-source.input | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-23c791229476d5300c434720d234b0971d12e751bba4c81e48564829ea5dc9de |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-compact-source.input |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| .../resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-compact-source.output | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-a3de3de1829633064c9dbaf02908ba9f3ff83b235f276167fb40e5192491ccf4 |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-compact-source.output |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| ...src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-package.input | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-21481abcf25e019e7e5df1773dbd3d80ca03be463bbfa5f268c734eb775169fd |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-package.input |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| ...rc/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-package.output | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-0bf6c032e199f20dabe0a01084d23a57da9c1bb087ee925b81901a921d870a2e |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-package.output |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| .../src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-script.input | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-34a0f5e6f3c2dca05ec3c560139eceda3f324982aec0d99a55b70b11925cf2a9 |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-script.input |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| ...src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-script.output | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files#diff-1a2dbfbe7fe274fb3e0624846dddbb76ab45e3fe7f4e16ffa1664a825cde58c8 |
|
View file
| https://redirect.github.com/openjavaformat/open-java-format/blob/493d4d9c99ad5a1a35ae0f4631eaf1089cee0e6d/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-issue-24-jbang-script.output |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/openjavaformat/open-java-format/pull/91/{{ revealButtonHref }} |
| Please reload this page | https://redirect.github.com/openjavaformat/open-java-format/pull/91/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |