Skip to content

Commit

Permalink
Corrected parameter names - href instead of url, rel comes first.
Browse files Browse the repository at this point in the history
  • Loading branch information
talios committed Nov 6, 2012
1 parent a10a2ee commit a438a30
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -46,17 +46,17 @@ public DefaultRepresentationFactory withReader(String contentType, Class<? exten
} }


@Override @Override
public DefaultRepresentationFactory withNamespace(String namespace, String url) { public DefaultRepresentationFactory withNamespace(String namespace, String href) {
if (namespaces.containsKey(namespace)) { if (namespaces.containsKey(namespace)) {
throw new RepresentationException(format("Duplicate namespace '%s' found for representation factory", namespace)); throw new RepresentationException(format("Duplicate namespace '%s' found for representation factory", namespace));
} }
namespaces.put(namespace, url); namespaces.put(namespace, href);
return this; return this;
} }


@Override @Override
public DefaultRepresentationFactory withLink(String rel, String url) { public DefaultRepresentationFactory withLink(String rel, String href) {
links.add(new Link(this, rel, url)); links.add(new Link(this, rel, href));
return this; return this;
} }


Expand Down

0 comments on commit a438a30

Please sign in to comment.