This is an automated email from the ASF dual-hosted git repository.
ndipiazza pushed a commit to branch TIKA-4606-ignite-3x-upgrade
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/TIKA-4606-ignite-3x-upgrade by
this push:
new 7d1314aa8 Fix forbidden API violations - use Locale.ROOT for
String.format() and toUpperCase()
7d1314aa8 is described below
commit 7d1314aa80eba3c3f6fb22dcc3bd090e23fc78da
Author: Nicholas DiPiazza <[email protected]>
AuthorDate: Mon Dec 29 09:20:38 2025 -0600
Fix forbidden API violations - use Locale.ROOT for String.format() and
toUpperCase()
---
.../org/apache/tika/pipes/ignite/server/IgniteStoreServer.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/tika-pipes/tika-pipes-config-store-ignite/src/main/java/org/apache/tika/pipes/ignite/server/IgniteStoreServer.java
b/tika-pipes/tika-pipes-config-store-ignite/src/main/java/org/apache/tika/pipes/ignite/server/IgniteStoreServer.java
index 3fdfd3a7f..3f7377298 100644
---
a/tika-pipes/tika-pipes-config-store-ignite/src/main/java/org/apache/tika/pipes/ignite/server/IgniteStoreServer.java
+++
b/tika-pipes/tika-pipes-config-store-ignite/src/main/java/org/apache/tika/pipes/ignite/server/IgniteStoreServer.java
@@ -19,6 +19,7 @@ package org.apache.tika.pipes.ignite.server;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.util.Locale;
import org.apache.ignite.IgniteServer;
import org.apache.ignite.table.Table;
@@ -123,7 +124,7 @@ public class IgniteStoreServer implements AutoCloseable {
LOG.info("Creating table: {} with replicas={}, partitions={}",
tableName, replicas, partitions);
// Create table using SQL
- String createTableSql = String.format(
+ String createTableSql = String.format(Locale.ROOT,
"CREATE TABLE IF NOT EXISTS %s (" +
" id VARCHAR PRIMARY KEY," +
" contextKey VARCHAR," +
@@ -131,16 +132,16 @@ public class IgniteStoreServer implements AutoCloseable {
" factoryName VARCHAR," +
" json VARCHAR(10000)" +
") WITH PRIMARY_ZONE='%s_ZONE'",
- tableName, tableName.toUpperCase()
+ tableName, tableName.toUpperCase(Locale.ROOT)
);
// First create a distribution zone
- String createZoneSql = String.format(
+ String createZoneSql = String.format(Locale.ROOT,
"CREATE ZONE IF NOT EXISTS %s_ZONE WITH " +
"REPLICAS=%d, " +
"PARTITIONS=%d, " +
"STORAGE_PROFILES='default'",
- tableName.toUpperCase(), replicas, partitions
+ tableName.toUpperCase(Locale.ROOT), replicas, partitions
);
LOG.info("Creating distribution zone with SQL: {}", createZoneSql);