GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Preserve generated code and encoded data in UseTextBlocks by jkschneider · Pull Request #1470 · openrewrite/rewrite-migrate-java

Conversation

@jkschneider

@jkschneider jkschneider commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Preserve encoded string data and keep optional cosmetic migrations out of generated Java sources. Octal escapes, binary controls, Unicode format/separator/private-use/unassigned values and lone surrogates remain encoded. The shared guard recognizes generated directories, ANTLR headers, standard generated annotations and generated markers at file scope. Required compatibility changes remain eligible, including URL and Security Manager migration; console I/O composite membership is unchanged.

Text-block indentation and empty-line whitespace rendering are held separately in draft #1477. Every existing UseTextBlocksTest expectation matches main byte for byte; this PR only adds regression cases.

Validation on the rebased head: 72 focused text-block/composite tests and the GeneratedMigrationTest cases pass; recipeCsvGenerate and catalog content/completeness validation pass. Earlier seven-file YANG source replay left the five generated lexer/parser/GrammarAccess files unchanged and modernized the handwritten controls. The earlier full module result predates this final whitespace extraction; current CI validates the final head.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@moderne-meeseeks moderne-meeseeks Bot assigned jkschneider Nov 19, 2026
@moderne-meeseeks moderne-meeseeks Bot added this to OpenRewrite Nov 19, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Nov 19, 2026
@jkschneider
jkschneider force-pushed the fix/use-text-blocks-generated-and-binary-data branch from 27b8704 to 827d10b Compare November 19, 2026 22:34
@jkschneider jkschneider mentioned this pull request Nov 19, 2026
Indent text blocks with the whitespace of the concatenation they replace #1477
Merged
@jkschneider
jkschneider force-pushed the fix/use-text-blocks-generated-and-binary-data branch from 827d10b to 0e119d7 Compare November 19, 2026 22:42
jkschneider added 9 commits November 19, 2026 23:03
@jkschneider
textblock-data: preserve encoded string tables
2ba434c
@jkschneider
textblock-generated: skip generated Java sources and declarations
a790ad5
@jkschneider
textblock-local-indent: retain local indentation and empty lines
2f5fea5
@jkschneider
textblock-local-indent: preserve observed prefixes and share generate…
42ee424
…d-source checks
@jkschneider
textblock-generated: guard optional migration edits at file scope
2392e9d
@jkschneider
Defer text block indentation policy and retain prevailing style
895185b
@jkschneider
Restore original explicit-spaces fixture verbatim
27ae118
@jkschneider
Move blank-line text block formatting to the policy draft and refresh…
dd2f881
… catalog
@jkschneider
Regenerate recipe catalog after Eclipse and Lombok fixes merged
82cf380
@jkschneider
jkschneider force-pushed the fix/use-text-blocks-generated-and-binary-data branch from 0e119d7 to 82cf380 Compare November 19, 2026 23:04
@jkschneider
jkschneider merged commit 7dd5161 into main Nov 19, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@jkschneider
jkschneider deleted the fix/use-text-blocks-generated-and-binary-data branch November 19, 2026 23:08
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jkschneider jkschneider

Labels

None yet

Projects

OpenRewrite
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jkschneider
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.