public void print(JSourceWriter jsw) { if (jsw == null) return;
public void print(final JSourceWriter jsw) { if (jsw == null) { return; }
    public void print(JSourceWriter jsw) {        if (jsw == null) return; //-- nothing to do                LineFormatter formatter = null;                //-- calculate comment length        short currentIndent = jsw.getIndentSize();        int maxLength = MAX_LENGTH - currentIndent;                //-- a simple to check to make sure we have some room        //-- to print the comment        if (maxLength <= 17) maxLength = MAX_LENGTH/2;                short resolvedStyle = style;                if (style == AUTO_STYLE) {            //-- estimation of number of lines            int nbrLines = _comment.length()/maxLength;                        if (nbrLines > 2)                 resolvedStyle = BLOCK_STYLE;            else                 resolvedStyle = LINE_STYLE;        }                                //-- start comment        String prefix = null;        String start  = null;        String end    = null;                switch(resolvedStyle) {            case BLOCK_STYLE:                start  = START_BLOCK;                end    = END_BLOCK;                prefix = SPACE_PREFIX;                break;            case HEADER_STYLE:                start = START_BLOCK;                end   = END_BLOCK;                prefix = ASTERIX_PREFIX;                break;            case JAVADOC_STYLE:                start = START_JAVADOC;                end   = END_JAVADOC;                prefix = ASTERIX_PREFIX;                break;                        default: //-- LINE                prefix = LINE_COMMENT_PREFIX;                break;        }        if (start != null) jsw.writeln(start);        //-- print main comment        formatter = new LineFormatter(_comment.toString(), maxLength, prefix);        while(formatter.hasMoreLines()) {            jsw.writeln(formatter.nextLine());        }        if (end != null) jsw.writeln(end);        jsw.flush();    } //-- print