cassandra/test
Ata İlhan Köktürk 46b36f23cd
Explicitly localize strings to Locale.US for internal implementation
There is inconsistent usage of toLowerCase/toUpperCase methods in the codebase.
Somewhere we already use Locale.US, somewhere not. That might cause various issues in runtime
as shown in CASSANDRA-19953 ticket when an environment Cassandra runs in has different locale from expected.
In this patch, all such method calls explicitly set their locale to Locale.US. This patch also contains
a checkstyle rule which fails the compilation if toLowerCase or toUpperCase is used.
We prefer calls to methods in LocalizeString class which use US locale.

patch by Ata İlhan Köktürk; reviewed by Stefan Miklosovic, Brandon Williams for CASSANDRA-19953

Co-authored-by: Maxwell Guo <cclive1601@gmail.com>
Co-authored-by: Stefan Miklosovic <smiklosovic@apacheorg>
2024-10-29 08:58:01 +01:00
..
anttasks/org/apache/cassandra/anttasks Optionally fail writes when SAI refuses to index a term value exceeding a configured maximum size 2024-04-17 11:12:42 -05:00
bin JMH improvements - faster build and async profiler 2023-09-25 12:39:36 +02:00
burn/org/apache/cassandra Merge branch 'cassandra-5.0' into trunk 2024-09-16 12:26:12 -05:00
conf Merge branch 'cassandra-5.0' into trunk 2024-10-19 09:49:40 +02:00
data Merge branch 'cassandra-5.0' into trunk 2024-10-09 13:53:48 +02:00
distributed/org/apache/cassandra Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
harry/main Create a fuzz test that randomizes topology changes, cluster actions, and CQL operations 2024-09-04 10:51:09 -07:00
long/org/apache/cassandra Don't start MessagingService unnecessarily to speed up tests and to avoid memory leak 2023-12-08 12:42:53 +01:00
memory/org/apache/cassandra/db/compaction Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
microbench/org/apache/cassandra/test/microbench Merge branch 'cassandra-5.0' into trunk 2024-10-02 15:33:28 +02:00
resources Support dictionary lookup for CassandraPasswordValidator 2024-07-15 11:09:57 +02:00
simulator Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
unit Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00