Skip to content

Commit

Permalink
fix build failure
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@225 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
Gavin King authored and gavin.king@gmail.com committed Nov 3, 2008
1 parent 321bce3 commit c32319f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
@@ -1,6 +1,7 @@
package org.jboss.webbeans.model.bean;

import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
Expand All @@ -23,6 +24,7 @@
import org.jboss.webbeans.injectable.InjectableMethod;
import org.jboss.webbeans.injectable.InjectableParameter;
import org.jboss.webbeans.introspector.AnnotatedItem;
import org.jboss.webbeans.introspector.SimpleAnnotatedType;
import org.jboss.webbeans.model.MergedStereotypesModel;
import org.jboss.webbeans.util.LoggerUtil;
import org.jboss.webbeans.util.Reflections;
Expand Down Expand Up @@ -65,6 +67,10 @@ protected AbstractClassBeanModel<? extends T> getSpecializedType() {
throw new UnsupportedOperationException();
}

protected static <T> SimpleAnnotatedType getEmptyAnnotatedType(Class<T> type) {
return new SimpleAnnotatedType<T>(type, new HashMap<Class<? extends Annotation>, Annotation>());
}

protected void initInjectionPoints()
{
injectionPoints = new HashSet<Injectable<?,?>>();
Expand Down
Expand Up @@ -13,7 +13,6 @@
import org.jboss.webbeans.injectable.InjectableParameter;
import org.jboss.webbeans.introspector.AnnotatedType;
import org.jboss.webbeans.introspector.SimpleAnnotatedType;
import org.jboss.webbeans.test.util.Util;
import org.jboss.webbeans.util.Reflections;

public class EnterpriseBeanModel<T> extends AbstractEnterpriseBeanModel<T>
Expand Down Expand Up @@ -126,7 +125,7 @@ protected AbstractClassBeanModel<? extends T> getSpecializedType()
Class<?> superclass = getAnnotatedItem().getType().getSuperclass();
if ( superclass!=null )
{
return new EnterpriseBeanModel( new SimpleAnnotatedType( superclass ), Util.getEmptyAnnotatedType( getAnnotatedItem().getType().getSuperclass() ), container );
return new EnterpriseBeanModel(new SimpleAnnotatedType(superclass), getEmptyAnnotatedType(superclass), container);
}
else {
throw new RuntimeException();
Expand Down
Expand Up @@ -12,7 +12,6 @@
import org.jboss.webbeans.injectable.SimpleConstructor;
import org.jboss.webbeans.introspector.AnnotatedType;
import org.jboss.webbeans.introspector.SimpleAnnotatedType;
import org.jboss.webbeans.test.util.Util;
import org.jboss.webbeans.util.LoggerUtil;
import org.jboss.webbeans.util.Reflections;

Expand Down Expand Up @@ -128,7 +127,7 @@ protected AbstractClassBeanModel<? extends T> getSpecializedType()
Class<?> superclass = getAnnotatedItem().getType().getSuperclass();
if ( superclass!=null )
{
return new SimpleBeanModel( new SimpleAnnotatedType( superclass ), Util.getEmptyAnnotatedType( getAnnotatedItem().getType().getSuperclass() ), container );
return new SimpleBeanModel(new SimpleAnnotatedType(superclass), getEmptyAnnotatedType(superclass), container);
}
else {
throw new RuntimeException();
Expand Down

0 comments on commit c32319f

Please sign in to comment.