private static boolean isValidChar ( char c ) { if ( c >= ' ' && c <= ' ' || c >= ' ' && c <= ' ' || c >= ' ' && c <= ' ' ) { return true ; } return c != ' ' && c != ' ' && ! Character . isWhitespace ( c ) && ! Character . isWhitespace ( c ) ; }
This method defines what characters are valid for the output of normalizeVariableName . Spaces and control characters are invalid . There is a fast - path for well known characters