Skip to content

Commit ccef2e5

Browse files
authored
Merge pull request #46850 from geoand/#46849
Use actual `@RestLink` annotation in `StandardMethodImplementor`
2 parents 24804a3 + bd2daff commit ccef2e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import io.quarkus.rest.data.panache.deployment.properties.ResourceProperties;
3333
import io.quarkus.rest.data.panache.deployment.utils.ResponseImplementor;
3434
import io.quarkus.rest.data.panache.runtime.sort.SortQueryParamValidator;
35+
import io.quarkus.resteasy.reactive.links.RestLink;
3536

3637
/**
3738
* A standard JAX-RS method implementor.
@@ -108,7 +109,7 @@ protected void addLinksAnnotation(AnnotatedElement element, ResourceProperties r
108109
linkResource.addValue("entityClassName", entityClassName);
109110
linkResource.addValue("rel", rel);
110111
} else {
111-
AnnotationCreator linkResource = element.addAnnotation("io.quarkus.resteasy.reactive.links.RestLink");
112+
AnnotationCreator linkResource = element.addAnnotation(RestLink.class);
112113
Class<?> entityClass;
113114
try {
114115
entityClass = Thread.currentThread().getContextClassLoader().loadClass(entityClassName);

0 commit comments

Comments
 (0)