René's URL Explorer Experiment


Title: Copy input arrays when constructing chunks by parijat1222q · Pull Request #243 · java-diff-utils/java-diff-utils · GitHub

Open Graph Title: Copy input arrays when constructing chunks by parijat1222q · Pull Request #243 · java-diff-utils/java-diff-utils

X Title: Copy input arrays when constructing chunks by parijat1222q · Pull Request #243 · java-diff-utils/java-diff-utils

Description: Fixes #242. The array constructors promise a copy, but Arrays.asList(lines) keeps the caller's array. Mutating a source array can make a previously constructed patch fail verification; mutating a revised array silently changes its output. Copy the array-backed list into an ArrayList, matching the existing List overload. The two-argument array overload delegates to this constructor, so both paths are covered by the one-line fix. No change to the separate mutable getLines/setLines API. Three regressions exercise patch application after source/revised array changes and the overload with change positions. All three fail on the unchanged implementation: two source-verification errors and one wrong-output assertion. Validation on Linux, Temurin 17.0.21: mvn -B -ntp package passes across both modules. 173 tests, zero failures/errors, 3 existing skipped tests. Zero Checkstyle violations; Javadocs built. The formatter's existing JDK21 incompatibility was avoided by using JDK17, which is in the repository's CI matrix. No build or test checks were disabled.

Open Graph Description: Fixes #242. The array constructors promise a copy, but Arrays.asList(lines) keeps the caller's array. Mutating a source array can make a previously constructed patch fail verification; mutating...

X Description: Fixes #242. The array constructors promise a copy, but Arrays.asList(lines) keeps the caller's array. Mutating a source array can make a previously constructed patch fail verification; muta...

Opengraph URL: https://github.com/java-diff-utils/java-diff-utils/pull/243

X: @github

direct link

Domain: github-redirect.dependabot.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:4c1bc133-41e5-55dd-900c-60fb97d579f3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA08:1F2F:14E968D:1BD1465:6B01E69D
html-safe-nonce1716293b3baa434d17de142f41d66344d9b42edb2ea036e336e46eb42389a3ec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTA4OjFGMkY6MTRFOTY4RDoxQkQxNDY1OjZCMDFFNjlEIiwidmlzaXRvcl9pZCI6IjI1MTc0Mzc0MjY3MDQ3MDUxODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdf985eb2ac31c50d1d65284d6efdcf871c4d8e2e46ccef5b921272be4d9601b8
hovercard-subject-tagpull_request:5241565915
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/java-diff-utils/java-diff-utils/pull/243/files
twitter:imagehttps://avatars.githubusercontent.com/u/98056935?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/98056935?s=400&v=4
og:image:altFixes #242. The array constructors promise a copy, but Arrays.asList(lines) keeps the caller's array. Mutating a source array can make a previously constructed patch fail verification; mutating...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git
octolytics-dimension-user_id40540835
octolytics-dimension-user_loginjava-diff-utils
octolytics-dimension-repository_id86663812
octolytics-dimension-repository_nwojava-diff-utils/java-diff-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86663812
octolytics-dimension-repository_network_root_nwojava-diff-utils/java-diff-utils
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#start-of-content
https://github-redirect.dependabot.com/
Sign inhttps://github-redirect.dependabot.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fpull%2F243%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-redirect.dependabot.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fpull%2F243%2Ffiles
Sign uphttps://github-redirect.dependabot.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=java-diff-utils%2Fjava-diff-utils
Reloadhttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Reloadhttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Reloadhttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
java-diff-utilshttps://github-redirect.dependabot.com/java-diff-utils
java-diff-utilshttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils
Codehttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils
Issues2 (2)https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/issues
Pull requests2 (2)https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pulls
Discussionshttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/discussions
Actionshttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/actions
Projectshttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/projects
Wikihttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/wiki
Security and qualityhttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/security
Insightshttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/insights
Sign up for GitHub https://github-redirect.dependabot.com/signup?return_to=%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github-redirect.dependabot.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2Fnew%2Fchoose
parijat1222qhttps://github-redirect.dependabot.com/parijat1222q
java-diff-utils:masterhttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/tree/master
parijat1222q:fix/chunk-array-copyhttps://github-redirect.dependabot.com/parijat1222q/java-diff-utils/tree/fix/chunk-array-copy
Conversation 0 https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243
Commits 1 https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/commits
Checks 1 https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/checks
Files changed https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Please reload this pagehttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Copy input arrays when constructing chunks https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#top
Show all changes 1 commit https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
cdbaab1 Copy input arrays when constructing chunks parijat1222q Nov 10, 2026 https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/commits/cdbaab11eeea7978dc0f6b4816fe07e7259e33a6
Clear filters https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Please reload this pagehttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Please reload this pagehttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files
Chunk.java https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-99fb370cebcc07d7882b31a7283ffb5853a36a9092d7f57f86abe9b2bc19533e
ChunkTest.java https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.javahttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-99fb370cebcc07d7882b31a7283ffb5853a36a9092d7f57f86abe9b2bc19533e
View file https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/blob/cdbaab11eeea7978dc0f6b4816fe07e7259e33a6/java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/{{ revealButtonHref }}
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-99fb370cebcc07d7882b31a7283ffb5853a36a9092d7f57f86abe9b2bc19533e
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-99fb370cebcc07d7882b31a7283ffb5853a36a9092d7f57f86abe9b2bc19533e
java-diff-utils/src/test/java/com/github/difflib/patch/ChunkTest.javahttps://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
View file https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/blob/cdbaab11eeea7978dc0f6b4816fe07e7259e33a6/java-diff-utils/src/test/java/com/github/difflib/patch/ChunkTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/{{ revealButtonHref }}
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
https://github-redirect.dependabot.com/java-diff-utils/java-diff-utils/pull/243/files#diff-b7e9cc8e09da3f815b14498d7606bd148dc2062dbbedd500eb909acb003c9838
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.