字符未使用下划线不进行驼峰式处理

pull/300/head
RuoYi 2 years ago
parent 853040cd42
commit 8eb22e86e0

@ -428,7 +428,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
}
/**
* user_name->userName
*
* user_name->userName
*/
public static String toCamelCase(String s)
{
@ -436,6 +437,10 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
{
return null;
}
if (s.indexOf(SEPARATOR) == -1)
{
return s;
}
s = s.toLowerCase();
StringBuilder sb = new StringBuilder(s.length());
boolean upperCase = false;

Loading…
Cancel
Save