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.