Skip to content

Commit

Permalink
[RESTEASY-1653] (#1171)
Browse files Browse the repository at this point in the history
Correct overly broad test for PathSegment List parameters.
  • Loading branch information
ronsigal committed May 20, 2017
1 parent 1dcd9cd commit 7d2a06f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private boolean isPathSegmentArray(Class type)
private boolean isPathSegmentList(Class type, Type genericType)
{
Class collectionBaseType = Types.getCollectionBaseType(type, genericType);
return List.class.isAssignableFrom(type) && collectionBaseType != null && collectionBaseType.equals(PathSegment.class);
return (List.class.equals(type) || ArrayList.class.equals(type)) && collectionBaseType != null && collectionBaseType.equals(PathSegment.class);
}

public Object inject(HttpRequest request, HttpResponse response)
Expand Down

0 comments on commit 7d2a06f

Please sign in to comment.