private boolean isLineTooShort(IDocument document, int line)
        throws BadLocationException
    {

        if (!isCommentLine(document, line + 1)) {
            return false;
        }

        String nextLine = getLineContents(document, line + 1);
        return nextLine.trim().length() != 0;

    }
Returns <code>true</code> if the comment line is too short, <code>false</code> otherwise.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLCommentAutoIndentStrategy.java