Skip to content

Replace deprecated Java APIs with modern equivalents - #12

Closed
valerybugakov wants to merge 1 commit into
mainfrom
dogfood/vb-r3-java
Closed

valerybugakov wants to merge 1 commit into
mainfrom
dogfood/vb-r3-java

Conversation

@valerybugakov

Copy link
Copy Markdown

Replaces deprecated boxed-primitive constructors (new Integer(x), new Long(x), new Character(x), new Boolean(x), etc.) with the equivalent Wrapper.valueOf(x) factory methods.

  • Argument expressions are unchanged, so values and program output are identical. None of the affected objects are compared by reference or used as locks.
  • Verified with javac -Xlint:deprecation -Xlint:removal -Werror on JDK 17.

Created by a Sourcegraph agentic batch change.

@valerybugakov
valerybugakov deleted the dogfood/vb-r3-java branch October 22, 2026 08:13
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