Skip to content

Commit

Permalink
Fix for wrong type check in isParamType method - not sure how it was …
Browse files Browse the repository at this point in the history
…made
  • Loading branch information
Vamsi Subhash Achanta committed Dec 6, 2018
1 parent b125802 commit 4d07c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ protected boolean isParameterisedType(Class<?> clazz) {

public boolean isParameterisedType(Object datum) {
return (datum != null) &&
(datum instanceof GenericData.EnumSymbol || parameterisedTypes.contains(datum.getClass()));
(datum instanceof GenericData.Param || parameterisedTypes.contains(datum.getClass()));
}

/** Called by the default implementation of {@link #instanceOf}.*/
Expand Down

0 comments on commit 4d07c43

Please sign in to comment.