#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

@@ -124,7 +124,7 @@ public class UriTemplateUnitTest {
UriTemplate template = new UriTemplate("/foo{?bar}");
URI uri = template.expand(Collections.<String, Object> singletonMap("bar", "myBar"));
URI uri = template.expand(Collections.singletonMap("bar", "myBar"));
assertThat(uri.toString(), is("/foo?bar=myBar"));
}