mirror of https://github.com/apache/cassandra
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> |
||
|---|---|---|
| .. | ||
| apache/cassandra | ||
| quicktheories/impl | ||