Commit aa539ce
committed
fix: use locale-agnostic uppercase in metamodel generator (#700)
The metamodel generator was using String.toUpperCase() without specifying
a locale, causing non-ASCII characters in generated field names when
running in Turkish locale. For example, 'id' was converted to 'İD'
instead of 'ID'.
Changed all toUpperCase() calls to use Locale.ROOT for consistent ASCII
uppercase conversion regardless of system locale settings:
- MetamodelGenerator: Map field values and nested field names
- ObjectUtils.staticField(): Static field name generation1 parent aae38a1 commit aa539ce
File tree
2 files changed
+4
-4
lines changed- redis-om-spring/src/main/java/com/redis/om/spring
- metamodel
- util
2 files changed
+4
-4
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | | - | |
| 521 | + | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
| 876 | + | |
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
| |||
0 commit comments