camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject Model objects with ref uses two spaces
Date Wed, 30 Jul 2008 12:53:01 GMT
Hi

Working on CAMEL-771 I was surprised that the getLabel and toStrings on eg. ProcessorRef uses
two spaces. Since other models do this as well I think it is on purpose. But as I am curios
of nature I would like to know why?

Eg: two spaces here:
"ref:  "


    @Override
    public String toString() {
        return "Processor["
                + ((ref != null) ? "ref:  " + ref : processor)
                + "]";
    }

    @Override
    public String getLabel() {
        if (ref != null) {
            return "ref:  " + ref;
        } else if (processor != null) {
            return processor.toString();
        } else {
            return "";
        }
    }

Med venlig hilsen

Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk


Mime
View raw message