[weld-commits] Weld SVN: r6885 - archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Tue Aug 3 18:19:46 EDT 2010


Author: dan.j.allen
Date: 2010-08-03 18:19:46 -0400 (Tue, 03 Aug 2010)
New Revision: 6885

Modified:
   archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRepositoryProducer.java
Log:
update comment


Modified: archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRepositoryProducer.java
===================================================================
--- archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRepositoryProducer.java	2010-08-03 19:16:57 UTC (rev 6884)
+++ archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRepositoryProducer.java	2010-08-03 22:19:46 UTC (rev 6885)
@@ -3,6 +3,7 @@
 import javax.enterprise.inject.Produces;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceContext;
+
 /**
  * This class uses CDI to produce EntityManager instances qualified that are
  * qualified as @MemberRepository. Therefore, to inject an instance, @Inject
@@ -10,7 +11,8 @@
  */
 public class MemberRepositoryProducer
 {
-   @SuppressWarnings("unused") // tell IDE to ignore warnings about em not being used
+   // use @SuppressWarnings to tell IDE to ignore warnings about field not being referenced directly
+   @SuppressWarnings("unused")
    @Produces
    @MemberRepository
    @PersistenceContext



More information about the weld-commits mailing list