Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3840 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Oct 4, 2009
1 parent 0fce2c6 commit 0633b6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -118,7 +118,7 @@ private WBConstructorImpl(Constructor<T> constructor, AnnotatedConstructor<T> an

for (int i = 0; i < constructor.getParameterTypes().length; i++)
{
if (constructor.getParameterAnnotations()[i].length > 0)
if (constructor.getParameterAnnotations()[i].length > 0 || annotatedTypeParameters.containsKey(i))
{
Class<?> clazz = constructor.getParameterTypes()[i];
Type type = constructor.getGenericParameterTypes()[i];
Expand Down
Expand Up @@ -124,7 +124,7 @@ private WBMethodImpl(Method method, AnnotatedMethod<T> annotatedMethod, Annotati

for (int i = 0; i < method.getParameterTypes().length; i++)
{
if (method.getParameterAnnotations()[i].length > 0)
if (method.getParameterAnnotations()[i].length > 0 || annotatedTypeParameters.containsKey(i))
{
Class<? extends Object> clazz = method.getParameterTypes()[i];
Type type = method.getGenericParameterTypes()[i];
Expand Down
Expand Up @@ -76,7 +76,7 @@ protected WBParameterImpl(Annotation[] annotations, Class<T> rawType, Type type,
this.declaringMember = declaringMember;
this._package = declaringMember.getPackage();
this.position = position;
this.toString = new StringBuilder().append("parameter ").append(position + 1).append(" of ").append(declaringMember.toString()).toString();
this.toString = new StringBuilder().append("parameter ").append(position).append(" of ").append(declaringMember.toString()).toString();
}

/**
Expand Down

0 comments on commit 0633b6f

Please sign in to comment.