Skip to content

Conversation

copybara-service[bot]
Copy link
Contributor

In Strings.lenientFormat, don't assign into the varargs array.

When the method is called with an actual array argument, rather than as varargs, assigning into that array is at best surprising. It may also cause an ArrayStoreException if the component type of the array is not compatible with String.

RELNOTES=Strings.lenientFormat no longer assigns into its varargs array argument.

When the method is called with an actual array argument, rather than as varargs, assigning into that array is at best surprising. It may also cause an `ArrayStoreException` if the component type of the array is not compatible with `String`.

RELNOTES=`Strings.lenientFormat` no longer assigns into its varargs array argument.
PiperOrigin-RevId: 800096793
@copybara-service copybara-service bot merged commit 148cea0 into master Aug 27, 2025
@copybara-service copybara-service bot deleted the test_799574193 branch August 27, 2025 17:53
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