diff --git a/src/main/java/org/springframework/hateoas/client/LinkDiscoverer.java b/src/main/java/org/springframework/hateoas/client/LinkDiscoverer.java index 1bca08c3..96d3e2e5 100644 --- a/src/main/java/org/springframework/hateoas/client/LinkDiscoverer.java +++ b/src/main/java/org/springframework/hateoas/client/LinkDiscoverer.java @@ -34,21 +34,21 @@ public interface LinkDiscoverer extends Plugin { /** * Finds a single link with the given {@link LinkRelation} in the given {@link String} representation. * - * @param rel must not be {@literal null}. + * @param relation must not be {@literal null}. * @param representation must not be {@literal null}. * @return the first link with the given relation type found, or {@link Optional#empty()} if none was found. */ - Optional findLinkWithRel(LinkRelation rel, String representation); + Optional findLinkWithRel(LinkRelation relation, String representation); /** * Finds a single link with the given relation type in the given {@link String} representation. * - * @param rel must not be {@literal null} or empty. + * @param relation must not be {@literal null} or empty. * @param representation must not be {@literal null}. * @return the first {@link Link} with the given link relation found, or {@link Optional#empty()} if none was found. */ - default Optional findLinkWithRel(String rel, String representation) { - return findLinkWithRel(LinkRelation.of(rel), representation); + default Optional findLinkWithRel(String relation, String representation) { + return findLinkWithRel(LinkRelation.of(relation), representation); } /**