[picocontainer-scm] [jira] Created: (PICO-385) Introduction Documentation on Container Hierarchies: sample comments in the code and sentences behing are not consistent

"Alexandre GIGLEUX (JIRA)" <jira-yCVjj/[email protected]> Mon, 7 Nov 2011 03:00:51 -0600 (CST)
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <1092758408.8065.1320656451281.JavaMail.j2ee-jira@codehaus01-new.managed.contegix.com>
Introduction Documentation on Container Hierarchies: sample comments in the code and sentences behing are not consistent 
-------------------------------------------------------------------------------------------------------------------------

                 Key: PICO-385
                 URL: https://jira.codehaus.org/browse/PICO-385
             Project: PicoContainer
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 2.13.5
            Reporter: Alexandre GIGLEUX
            Priority: Trivial


In this page http://picocontainer.org/introduction.html, on the section Container Hierarchies.

{code}
Peeler peeler = (Peeler) z.getComponent(Peeler.class); // WON'T WORK! peeler will be null 
peeler = (Peeler) x.getComponent(Peeler.class); // WON'T WORK! This will throw an exception 
Juicer juicer = (Juicer) y.getComponent(Juicer.class);
{code}

I think the comments are not attached to the correct lines:
* // WON'T WORK! peeler will be null => must apply to the 2nd line
* // WON'T WORK! This will throw an exception => must apply to the 3rd line
At first read it's not clear.

Furthermore, the sentences explaining the code are not correct regarding line numbers.
There is no line 12, 14, 16



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>