#vulnerable code 
                                @Override
    public String draw() {
        String content = tableView.draw();
        StringBuilder sb = new StringBuilder();
        // 清理多余的空格
        Scanner scanner = new Scanner(content);
        while (scanner.hasNextLine()) {
            String line = scanner.nextLine();
            if (line != null) {
                //清理一行后面多余的空格
                line = StringUtils.stripEnd(line, " ");
                if(line.isEmpty()){
                    line = " ";
                }
            }
            sb.append(line).append('\n');
        }
        scanner.close();
        return sb.toString();
    } 
                            #location 18 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public String draw() {
        return filterEmptyLine(tableView.draw());
    }