Skip to content

Replace deprecated primitive-wrapper constructors with valueOf factories#7

Open
trly wants to merge 1 commit into
mainfrom
batch-changes/fix-deprecated-wrapper-constructors-1ca78ead-1fd5-471a-8a13-794d6329835e
Open

Replace deprecated primitive-wrapper constructors with valueOf factories#7
trly wants to merge 1 commit into
mainfrom
batch-changes/fix-deprecated-wrapper-constructors-1ca78ead-1fd5-471a-8a13-794d6329835e

Conversation

@trly

@trly trly commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Replaces deprecated Java primitive-wrapper constructors (new Integer(...), new Boolean(...), new Long(...), etc.) with their static valueOf(...) factory equivalents.

Only occurrences where the wrapper object's identity is not semantically significant were changed. Identity-dependent uses (reference comparison, synchronization, identity-sensitive collections), tests, generated code, and vendored code were left unchanged. See the batch change summary for per-repository details of anything skipped.

Created by Sourcegraph agentic batch change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant