Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ else if (Map.class.isAssignableFrom(targetCls)) {
// Generate the special VALUES field for querying map values
if (valuesInterceptor != null) {
String mapFieldName = field.getSimpleName().toString();
String mapValuesFieldName = mapFieldName.toUpperCase().replace("_", "") + "_VALUES";
String mapValuesFieldName = mapFieldName.toUpperCase(Locale.ROOT).replace("_", "") + "_VALUES";

// Add the VALUES field as a special metamodel field
Triple<ObjectGraphFieldSpec, FieldSpec, CodeBlock> valuesField = generateMapValuesFieldMetamodel(entity,
Expand All @@ -518,8 +518,8 @@ else if (Map.class.isAssignableFrom(targetCls)) {
if (subfieldElement.getAnnotation(com.redis.om.spring.annotations.Indexed.class) != null) {
String subfieldName = subfieldElement.getSimpleName().toString();
String jsonFieldName = getJsonFieldName(subfieldElement);
String nestedFieldName = field.getSimpleName().toString().toUpperCase().replace("_",
"") + "_" + subfieldName.toUpperCase().replace("_", "");
String nestedFieldName = field.getSimpleName().toString().toUpperCase(Locale.ROOT).replace("_",
"") + "_" + subfieldName.toUpperCase(Locale.ROOT).replace("_", "");

TypeMirror subfieldTypeMirror = subfieldElement.asType();
String subfieldTypeName = subfieldTypeMirror.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public static String replaceIfIllegalJavaIdentifierCharacter(final String word)
*/
public static String staticField(final String externalName) {
requireNonNull(externalName);
return ObjectUtils.toUnderscoreSeparated(javaNameFromExternal(externalName)).toUpperCase();
return ObjectUtils.toUnderscoreSeparated(javaNameFromExternal(externalName)).toUpperCase(java.util.Locale.ROOT);
}

/**
Expand Down