public static void cutSuffix(String suffix, StringBuilder stringBuilder) {
    """
	从字符串构造器剪掉结束符
	
	@param suffix        suffix
	@param stringBuilder stringBuilder
    """
        if (stringBuilder.substring(stringBuilder.length() - suffix.length()).equals(suffix)) {
            stringBuilder.delete(stringBuilder.length() - suffix.length(), stringBuilder.length());
        }
    }
public static void cutSuffix(String suffix, StringBuilder stringBuilder) {
        if (stringBuilder.substring(stringBuilder.length() - suffix.length()).equals(suffix)) {
            stringBuilder.delete(stringBuilder.length() - suffix.length(), stringBuilder.length());
        }
    }
public static void cutSuffix ( String suffix , StringBuilder stringBuilder ) { if ( stringBuilder . substring ( stringBuilder . length ( ) - suffix . length ( ) ) . equals ( suffix ) ) { stringBuilder . delete ( stringBuilder . length ( ) - suffix . length ( ) , stringBuilder . length ( ) ) ; } }
从字符串构造器剪掉结束符

@param suffix        suffix
@param stringBuilder stringBuilder
从字符串构造器剪掉结束符