Skip to content

Commit 364939b

Browse files
authored
Remove redundant Character.toLowerCase() in BeanPropertyRowMapper
This commit removes a redundant Character.toLowerCase() invocation in BeanPropertyRowMapper.underscoreName(). Closes gh-25361
1 parent 3364359 commit 364939b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ protected String underscoreName(String name) {
255255
result.append('_').append(Character.toLowerCase(s));
256256
}
257257
else {
258-
result.append(Character.toLowerCase(s));
258+
result.append(s);
259259
}
260260
}
261261
return result.toString();

0 commit comments

Comments
 (0)