Skip to content

Commit

Permalink
[WELD-910]; bad SE code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj committed Feb 27, 2012
1 parent c6febf2 commit 8f9dd84
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/reference/src/main/docbook/en-US/environments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ public class HelloWorld
</para>

<programlisting role="JAVA"><![CDATA[public static void main(String[] args) {
WeldContainer weld = new Weld().initialize();
weld.instance().select(MyApplicationBean.class).get();
Weld weld = new Weld();
WeldContainer container = weld.initialize();
container.select(MyApplicationBean.class).get();
weld.shutdown();
}]]></programlisting>

Expand All @@ -420,8 +421,9 @@ public class HelloWorld
</para>

<programlisting role="JAVA"><![CDATA[public static void main(String[] args) {
WeldContainer weld = new Weld().initialize();
weld.event().select(MyEvent.class).fire( new MyEvent() );
Weld weld = new Weld();
WeldContainer container = weld.initialize();
container.event().select(MyEvent.class).fire( new MyEvent() );
weld.shutdown();
}]]></programlisting>

Expand Down

0 comments on commit 8f9dd84

Please sign in to comment.