mirror of https://github.com/apache/cassandra
46b36f23cd
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> |
||
---|---|---|
.. | ||
anttasks/org/apache/cassandra/anttasks | ||
bin | ||
burn/org/apache/cassandra | ||
conf | ||
data | ||
distributed/org/apache/cassandra | ||
harry/main | ||
long/org/apache/cassandra | ||
memory/org/apache/cassandra/db/compaction | ||
microbench/org/apache/cassandra/test/microbench | ||
resources | ||
simulator | ||
unit |