Commit c772d31
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 97ff942 commit c772d31
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 | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
| 517 | + | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
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