Skip to content

Commit

Permalink
Cleanup toString
Browse files Browse the repository at this point in the history
  • Loading branch information
talios committed Dec 29, 2015
1 parent dd3f760 commit 6372248
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -329,8 +329,8 @@ public boolean equals(Object obj) {
@Override
public String toString() {
return getLinkByRel("self")
.map(href -> "<Representation: " + href.getHref() + ">")
.orElse("<Representation: @" + Integer.toHexString(hashCode()) + ">");
.map(href -> String.format("<Representation: %s>", href.getHref()))
.orElse(String.format("<Representation: @%s>", Integer.toHexString(hashCode())));
}

}

0 comments on commit 6372248

Please sign in to comment.