Skip to content

Commit

Permalink
fixed regression on issue fabiomaffioletti#146
Browse files Browse the repository at this point in the history
  • Loading branch information
picsa-hp-bf committed Nov 3, 2015
1 parent c7ba62b commit e7a3939
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import java.lang.reflect.Field;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.GenericDeclaration;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.util.Collection;
import java.util.LinkedHashSet;
Expand Down Expand Up @@ -123,6 +125,9 @@ public static Set<Class<?>> buildJSONDocObjectsCandidates(Set<Class<?>> candidat
} else if (parametrizedType instanceof WildcardType) {
candidates.add(Void.class);
candidates.addAll(buildJSONDocObjectsCandidates(candidates, (Class<?>) ((ParameterizedType) type).getRawType(), parametrizedType));
} else if(parametrizedType instanceof TypeVariable<?>){
candidates.add(Void.class);
candidates.addAll(buildJSONDocObjectsCandidates(candidates, (Class<?>) ((ParameterizedType) type).getRawType(), parametrizedType));
} else {
candidates.addAll(buildJSONDocObjectsCandidates(candidates, (Class<?>) ((ParameterizedType) parametrizedType).getRawType(), parametrizedType));
}
Expand Down

0 comments on commit e7a3939

Please sign in to comment.