This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new b073b2393e chore: remove use of toUpperCase() deprecated function in
Kotlin
b073b2393e is described below
commit b073b2393e5bf14988f45ea8f228ce02bcd1d12e
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Thu Apr 27 15:37:49 2023 +0300
chore: remove use of toUpperCase() deprecated function in Kotlin
---
build-logic/settings.gradle.kts | 4 +++-
settings.gradle.kts | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/build-logic/settings.gradle.kts b/build-logic/settings.gradle.kts
index f5cc44ab65..c3d1415f69 100644
--- a/build-logic/settings.gradle.kts
+++ b/build-logic/settings.gradle.kts
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+import java.util.*
+
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
@@ -67,7 +69,7 @@ fun File.sha512(): String {
forEachBlock { buffer, bytesRead ->
md.update(buffer, 0, bytesRead)
}
- return BigInteger(1, md.digest()).toString(16).toUpperCase()
+ return BigInteger(1, md.digest()).toString(16).uppercase(Locale.ROOT)
}
val violations =
diff --git a/settings.gradle.kts b/settings.gradle.kts
index a8bb9f14cd..def4213cf9 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+import java.util.*
+
pluginManagement {
plugins {
id("com.github.vlsi.stage-vote-release") version "1.86"
@@ -175,7 +177,7 @@ fun File.sha512(): String {
forEachBlock { buffer, bytesRead ->
md.update(buffer, 0, bytesRead)
}
- return BigInteger(1, md.digest()).toString(16).toUpperCase()
+ return BigInteger(1, md.digest()).toString(16).uppercase(Locale.ROOT)
}
val violations =