字符未使用下划线不进行驼峰式处理
This commit is contained in:
		
							parent
							
								
									5073f95ccd
								
							
						
					
					
						commit
						71e7e1d6dd
					
				@ -481,7 +481,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 驼峰式命名法 例如:user_name->userName
 | 
			
		||||
     * 驼峰式命名法
 | 
			
		||||
     * 例如:user_name->userName
 | 
			
		||||
     */
 | 
			
		||||
    public static String toCamelCase(String s)
 | 
			
		||||
    {
 | 
			
		||||
@ -489,6 +490,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…
	
		Reference in New Issue
	
	Block a user