Skip to content

Commit 76a8ead

Browse files
committed
Polishing.
See #2450
1 parent 2807e76 commit 76a8ead

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/** AOT & native configuration for rest.webmvc */
1+
/** AOT and native configuration for Spring Data REST */
22
@org.jspecify.annotations.NullMarked
33
package org.springframework.data.rest.webmvc.aot;

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/RepositoryLinkBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.data.rest.webmvc.BaseUri;
2525
import org.springframework.hateoas.Affordance;
2626
import org.springframework.hateoas.Link;
27+
import org.springframework.hateoas.server.LinkBuilder;
2728
import org.springframework.hateoas.server.core.LinkBuilderSupport;
2829
import org.springframework.util.Assert;
2930
import org.springframework.web.util.UriComponents;
@@ -38,10 +39,10 @@ public class RepositoryLinkBuilder extends LinkBuilderSupport<RepositoryLinkBuil
3839
private final ResourceMetadata metadata;
3940

4041
/**
41-
* Creates a new {@link RepositoryLinkBuilder} with the given {@link ResourceMetadata} and base {@link URI}.
42+
* Creates a new {@link RepositoryLinkBuilder} with the given {@link ResourceMetadata} and base {@link BaseUri}.
4243
*
4344
* @param metadata must not be {@literal null}.
44-
* @param baseUri
45+
* @param baseUri must not be {@literal null}.
4546
*/
4647
public RepositoryLinkBuilder(ResourceMetadata metadata, BaseUri baseUri) {
4748
this(metadata, baseUri.appendPath(metadata.getPath()), Collections.emptyList());
@@ -52,6 +53,7 @@ public RepositoryLinkBuilder(ResourceMetadata metadata, BaseUri baseUri) {
5253
*
5354
* @param metadata must not be {@literal null}.
5455
* @param components must not be {@literal null}.
56+
* @param affordances must not be {@literal null}.
5557
*/
5658
private RepositoryLinkBuilder(ResourceMetadata metadata, UriComponents components, List<Affordance> affordances) {
5759

0 commit comments

Comments
 (0)