René's URL Explorer Experiment


Title: Make column option token access consistent and explicit by minleejae · Pull Request #2777 · JSQLParser/JSqlParser · GitHub

Open Graph Title: Make column option token access consistent and explicit by minleejae · Pull Request #2777 · JSQLParser/JSqlParser

X Title: Make column option token access consistent and explicit by minleejae · Pull Request #2777 · JSQLParser/JSqlParser

Description: Purpose Make leaf column-option tokens a consistent read-only snapshot, with an explicit way to edit raw options. Currently getTokens().set(...) can mutate a raw option's SQL, silently edit a detached typed-option snapshot, or throw depending on the option kind. Current design (As-is) ColumnDefinition.getColumnSpecs() already provides an unmodifiable snapshot, but ColumnOption.getTokens() mixes mutable backing lists, mutable snapshots and unmodifiable lists. Raw factories also retain the caller's list or array. Generated-column token lists are mutable snapshots whose edits do not affect rendering. Target design (To-be) Return unmodifiable detached snapshots from raw and typed option tokens, including generated definitions. Add setTokens(List) for opaque Kind.OTHER options, copying the input. Raw factories also copy inputs. Preserve null (unset) versus empty raw tokens. Reject raw token replacement on typed options, including SERIAL DEFAULT VALUE, with an explicit exception. Typed setters and editable expression/constraint children remain the way to edit structured options. Document migration and preserve custom deparser and traversal behavior. Migration Direct token-list mutation now throws consistently. Use an explicit replacement for opaque options: List replacement = new ArrayList<>(rawOption.getTokens()); replacement.set(1, "FIXED"); rawOption.setTokens(replacement); For typed options, use e.g. option.setDefaultExpression(...) or option.getGeneratedDefinition().setExpression(...). To replace a typed option with raw text, replace the node through column.getColumnOptions().set(i, ColumnOption.raw(tokens)). Validation Tests cover read-only tokens across typed kinds; parsed CREATE/ALTER raw-option editing; input ownership; null/empty semantics; explicit rejection without mutation; live expression edits; stable snapshots; custom expression rendering; traversal and reparsing. Java 17 offline Gradle spotlessApply check: 10,065 tests, 10,040 passed, 25 skipped, zero failures/errors. Grammar, Checkstyle, PMD, SpotBugs and coverage checks pass. Default PMD comparison finds no newly affected symbols; pre-existing complexity and field-placement findings remain. Integration validation Applied #2770, #2771 and all four follow-ups (#2775–#2778) together on master (066f581e), resolving overlapping validator edits while preserving their respective behavior. The integrated build passes Java 17 offline Gradle spotlessApply check: 10,141 tests, 10,116 passed, 25 skipped, zero failures/errors. The combined ALTER validator has zero findings under the default PMD complexity and field-placement rules. Replayed 882 previously DB-validated MySQL/PostgreSQL DDL fixtures: 875 pass and the same seven existing parse gaps remain. SQL output, reparsing and AST node-type sets match the preceding integration baseline, with no new differences. This replay did not rerun the databases. The published head passes grammar checks, Gradle and Maven on Ubuntu/Windows/macOS, and Codacy. Deployment-only jobs are skipped as expected for a PR.

Open Graph Description: Purpose Make leaf column-option tokens a consistent read-only snapshot, with an explicit way to edit raw options. Currently getTokens().set(...) can mutate a raw option's SQL, silently edit a d...

X Description: Purpose Make leaf column-option tokens a consistent read-only snapshot, with an explicit way to edit raw options. Currently getTokens().set(...) can mutate a raw option&#39;s SQL, silently edit...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/pull/2777

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:989396e1-4cd3-448e-e1b3-db218d0d5c43
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CB8:221EB5:19CA5A:237B76:6B049282
html-safe-nonce3c9805f6bd42a5593ffb397274a1487c5fbbb62f89905a9076dce3c851e9669c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0I4OjIyMUVCNToxOUNBNUE6MjM3Qjc2OjZCMDQ5MjgyIiwidmlzaXRvcl9pZCI6Ijg4MDgzNzg1NDE3MzA0Njg0ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac30fee1a1859bc5d6a8768423346ee5128bbbe4cf2fd6cc3c03acb86ab97db15b
hovercard-subject-tagpull_request:4823924299
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/JSQLParser/JSqlParser/pull/2777/files
twitter:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
og:image:altPurpose Make leaf column-option tokens a consistent read-only snapshot, with an explicit way to edit raw options. Currently getTokens().set(...) can mutate a raw option's SQL, silently edit a d...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git
octolytics-dimension-user_id4643847
octolytics-dimension-user_loginJSQLParser
octolytics-dimension-repository_id1944709
octolytics-dimension-repository_nwoJSQLParser/JSqlParser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1944709
octolytics-dimension-repository_network_root_nwoJSQLParser/JSqlParser
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
releaseb51ce57ca6d4565a42856fc1c9897077c794597f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2777/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2777%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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2777%2Ffiles
Sign uphttps://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=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2777/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2777/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2777/files
JSQLParserhttps://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Codehttps://github.com/JSQLParser/JSqlParser
Issues2 (2)https://github.com/JSQLParser/JSqlParser/issues
Pull requests2 (2)https://github.com/JSQLParser/JSqlParser/pulls
Discussionshttps://github.com/JSQLParser/JSqlParser/discussions
Actionshttps://github.com/JSQLParser/JSqlParser/actions
Projectshttps://github.com/JSQLParser/JSqlParser/projects
Wikihttps://github.com/JSQLParser/JSqlParser/wiki
Security and qualityhttps://github.com/JSQLParser/JSqlParser/security
Insightshttps://github.com/JSQLParser/JSqlParser/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
manticore-projectshttps://github.com/manticore-projects
JSQLParser:masterhttps://github.com/JSQLParser/JSqlParser/tree/master
minleejae:refactor/column-option-token-contract-20261011https://github.com/minleejae/JSqlParser/tree/refactor/column-option-token-contract-20261011
Conversation 1 https://github.com/JSQLParser/JSqlParser/pull/2777
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2777/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2777/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2777/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2777/files
Make column option token access consistent and explicit https://github.com/JSQLParser/JSqlParser/pull/2777/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2777/files
a885b17 Make column option tokens read-only snapshots minleejae Oct 12, 2026 https://github.com/JSQLParser/JSqlParser/pull/2777/commits/a885b17f0379d044e7ec739892945dc9c2a56458
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2777/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2777/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2777/files
ColumnOption.java https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
GeneratedColumnDefinition.java https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
usage.rst https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
ColumnDefinitionStateTest.java https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-120120b7d0c8d41185fbf9277466d959e318169d40b4a23a29d78e0a299870fd
ColumnOptionTokenTest.java https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-40a2a8e081add2ea29a9c28bad48fd62863e11e39f22f38221cd07be623cbd81
src/main/java/net/sf/jsqlparser/statement/create/table/ColumnOption.javahttps://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
View file https://github.com/minleejae/JSqlParser/blob/a885b17f0379d044e7ec739892945dc9c2a56458/src/main/java/net/sf/jsqlparser/statement/create/table/ColumnOption.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2777/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-16a23811e67eb0fbe35375130070306478f85af6ba70ad585cd0ddfb425a92bd
src/main/java/net/sf/jsqlparser/statement/create/table/GeneratedColumnDefinition.javahttps://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
View file https://github.com/minleejae/JSqlParser/blob/a885b17f0379d044e7ec739892945dc9c2a56458/src/main/java/net/sf/jsqlparser/statement/create/table/GeneratedColumnDefinition.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2777/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-f68b9d3c34bcf48bbb8429f62f9058adc5a9772a006f7499d8bae40388c4b450
src/site/sphinx/usage.rsthttps://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
View file https://github.com/minleejae/JSqlParser/blob/a885b17f0379d044e7ec739892945dc9c2a56458/src/site/sphinx/usage.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2777/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
src/test/java/net/sf/jsqlparser/statement/create/ColumnDefinitionStateTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-120120b7d0c8d41185fbf9277466d959e318169d40b4a23a29d78e0a299870fd
View file https://github.com/minleejae/JSqlParser/blob/a885b17f0379d044e7ec739892945dc9c2a56458/src/test/java/net/sf/jsqlparser/statement/create/ColumnDefinitionStateTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2777/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-120120b7d0c8d41185fbf9277466d959e318169d40b4a23a29d78e0a299870fd
https://github.com/JSQLParser/JSqlParser/pull/2777/files#diff-120120b7d0c8d41185fbf9277466d959e318169d40b4a23a29d78e0a299870fd
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2777/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2777/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.