Skip to content

Commit fe604e8

Browse files
committed
GH-2084 - Polishing.
1 parent 7d8c420 commit fe604e8

File tree

1 file changed

+19
-19
lines changed
  • src/main/java/org/springframework/hateoas

1 file changed

+19
-19
lines changed

Diff for: src/main/java/org/springframework/hateoas/Link.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public Link andAffordances(List<Affordance> affordances) {
244244
* Creats a new {@link Link} with the given {@link Affordance}s.
245245
*
246246
* @param affordances must not be {@literal null}.
247-
* @return
247+
* @return will never be {@literal null}.
248248
*/
249249
public Link withAffordances(List<Affordance> affordances) {
250250

@@ -321,7 +321,7 @@ public Link expand(Map<String, ?> arguments) {
321321
* Creates a new {@link Link} with the same href but given {@link LinkRelation}.
322322
*
323323
* @param relation must not be {@literal null}.
324-
* @return
324+
* @return will never be {@literal null}.
325325
*/
326326
public Link withRel(LinkRelation relation) {
327327

@@ -334,7 +334,7 @@ public Link withRel(LinkRelation relation) {
334334
* Creates a new {@link Link} with the same href but given {@link LinkRelation}.
335335
*
336336
* @param relation must not be {@literal null} or empty.
337-
* @return
337+
* @return will never be {@literal null}.
338338
*/
339339
public Link withRel(String relation) {
340340
return withRel(LinkRelation.of(relation));
@@ -460,8 +460,8 @@ private static Map<String, String> getAttributeMap(String source) {
460460
/**
461461
* Create a new {@link Link} by copying all attributes and applying the new {@literal href}.
462462
*
463-
* @param href
464-
* @return
463+
* @param href can be {@literal null}
464+
* @return will never be {@literal null}.
465465
*/
466466
public Link withHref(String href) {
467467

@@ -473,8 +473,8 @@ public Link withHref(String href) {
473473
/**
474474
* Create a new {@link Link} by copying all attributes and applying the new {@literal hrefleng}.
475475
*
476-
* @param hreflang
477-
* @return
476+
* @param hreflang can be {@literal null}
477+
* @return will never be {@literal null}.
478478
*/
479479
public Link withHreflang(@Nullable String hreflang) {
480480

@@ -486,8 +486,8 @@ public Link withHreflang(@Nullable String hreflang) {
486486
/**
487487
* Create a new {@link Link} by copying all attributes and applying the new {@literal media}.
488488
*
489-
* @param media
490-
* @return
489+
* @param media can be {@literal null}
490+
* @return will never be {@literal null}.
491491
*/
492492
public Link withMedia(@Nullable String media) {
493493

@@ -499,8 +499,8 @@ public Link withMedia(@Nullable String media) {
499499
/**
500500
* Create a new {@link Link} by copying all attributes and applying the new {@literal title}.
501501
*
502-
* @param title
503-
* @return
502+
* @param title can be {@literal null}
503+
* @return will never be {@literal null}.
504504
*/
505505
public Link withTitle(@Nullable String title) {
506506

@@ -512,8 +512,8 @@ public Link withTitle(@Nullable String title) {
512512
/**
513513
* Create a new {@link Link} by copying all attributes and applying the new {@literal type}.
514514
*
515-
* @param type
516-
* @return
515+
* @param type can be {@literal null}
516+
* @return will never be {@literal null}.
517517
*/
518518
public Link withType(@Nullable String type) {
519519

@@ -525,8 +525,8 @@ public Link withType(@Nullable String type) {
525525
/**
526526
* Create a new {@link Link} by copying all attributes and applying the new {@literal deprecation}.
527527
*
528-
* @param deprecation
529-
* @return
528+
* @param deprecation can be {@literal null}
529+
* @return will never be {@literal null}.
530530
*/
531531
public Link withDeprecation(@Nullable String deprecation) {
532532

@@ -538,8 +538,8 @@ public Link withDeprecation(@Nullable String deprecation) {
538538
/**
539539
* Create a new {@link Link} by copying all attributes and applying the new {@literal profile}.
540540
*
541-
* @param profile
542-
* @return
541+
* @param profile can be {@literal null}
542+
* @return will never be {@literal null}.
543543
*/
544544
public Link withProfile(@Nullable String profile) {
545545

@@ -551,8 +551,8 @@ public Link withProfile(@Nullable String profile) {
551551
/**
552552
* Create a new {@link Link} by copying all attributes and applying the new {@literal name}.
553553
*
554-
* @param name
555-
* @return
554+
* @param name can be {@literal null}
555+
* @return will never be {@literal null}.
556556
*/
557557
public Link withName(@Nullable String name) {
558558

0 commit comments

Comments
 (0)