private String fixApiDocRoot(String str) {
	if (str == null)
	    return null;
	String fixed = str.trim();
	if (fixed.isEmpty())
	    return "";
	if (File.separatorChar != '/')
	    fixed = fixed.replace(File.separatorChar, '/');
	if (!fixed.endsWith("/"))
	    fixed = fixed + "/";
	return fixed;
    }
private String fixApiDocRoot ( String str ) { if ( str == null ) return null ; String fixed = str . trim ( ) ; if ( fixed . isEmpty ( ) ) return "" ; if ( File . separatorChar != '/' ) fixed = fixed . replace ( File . separatorChar , '/' ) ; if ( ! fixed . endsWith ( "/" ) ) fixed = fixed + "/" ; return fixed ; }
Trim and append a file separator to the string