Permalink
Browse files

Corrected parameter names - href instead of url, rel comes first.

  • Loading branch information...
1 parent a10a2ee commit a438a30aa9ffde4e9a3fe11421280486d8895175 @talios talios committed Nov 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/com/theoryinpractise/halbuilder/DefaultRepresentationFactory.java
@@ -46,17 +46,17 @@ public DefaultRepresentationFactory withReader(String contentType, Class<? exten
}
@Override
- public DefaultRepresentationFactory withNamespace(String namespace, String url) {
+ public DefaultRepresentationFactory withNamespace(String namespace, String href) {
if (namespaces.containsKey(namespace)) {
throw new RepresentationException(format("Duplicate namespace '%s' found for representation factory", namespace));
}
- namespaces.put(namespace, url);
+ namespaces.put(namespace, href);
return this;
}
@Override
- public DefaultRepresentationFactory withLink(String rel, String url) {
- links.add(new Link(this, rel, url));
+ public DefaultRepresentationFactory withLink(String rel, String href) {
+ links.add(new Link(this, rel, href));
return this;
}

0 comments on commit a438a30

Please sign in to comment.