[webbeans-commits] Webbeans SVN: r2123 - ri/trunk/impl/src/main/java/org/jboss/webbeans/xml.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Fri Mar 20 10:13:00 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-03-20 10:13:00 -0400 (Fri, 20 Mar 2009)
New Revision: 2123

Modified:
   ri/trunk/impl/src/main/java/org/jboss/webbeans/xml/XmlEnvironment.java
Log:
minor

Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/xml/XmlEnvironment.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/xml/XmlEnvironment.java	2009-03-20 13:33:15 UTC (rev 2122)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/xml/XmlEnvironment.java	2009-03-20 14:13:00 UTC (rev 2123)
@@ -9,7 +9,6 @@
 import org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery;
 import org.jboss.webbeans.introspector.AnnotatedAnnotation;
 import org.jboss.webbeans.introspector.AnnotatedClass;
-import org.jboss.webbeans.introspector.jlr.AnnotatedAnnotationImpl;
 import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
 import org.jboss.webbeans.resources.spi.ResourceLoader;
 
@@ -56,9 +55,9 @@
       return AnnotatedClassImpl.of(serviceRegistry.get(ResourceLoader.class).classForName(className).asSubclass(expectedType));
    }
    
-   public <T extends Annotation> AnnotatedAnnotation<? extends T> loadAnnotation(String className, Class<T> expectedType)
+   public <T extends Annotation> Class<? extends T> loadAnnotation(String className, Class<T> expectedType)
    {
-      return AnnotatedAnnotationImpl.of(serviceRegistry.get(ResourceLoader.class).classForName(className).asSubclass(expectedType));
+      return serviceRegistry.get(ResourceLoader.class).classForName(className).asSubclass(expectedType);
    }
 
    public List<Class<? extends Annotation>> getEnabledDeploymentTypes()




More information about the weld-commits mailing list