#160 - Fixed UriTemplate.expand(…) method declaration.

UriTemplate.expand(Map) not takes a Map<String, ? extends Object> to make sure Link.expand(Map) binds to the correct method. Previously it was bound to the method overload taking an Object vararg which caused an invalid expansion.
This commit is contained in:
Oliver Gierke
2014-03-11 19:12:59 +01:00
parent ec41d78828
commit f954a11e47
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ public class UriTemplate implements Iterable<TemplateVariable> {
* @param parameters must not be {@literal null}.
* @return
*/
public URI expand(Map<String, Object> parameters) {
public URI expand(Map<String, ? extends Object> parameters) {
if (TemplateVariables.NONE.equals(variables)) {
return URI.create(baseUri);