From afb20caaa698aab9a572a4f17fd33c6d23671eaa Mon Sep 17 00:00:00 2001 From: Guillaume Le Floch Date: Mon, 27 Sep 2021 21:04:46 +0200 Subject: [PATCH] Add missing resteasy @PathParam imports in documentation samples --- docs/src/main/asciidoc/smallrye-fault-tolerance.adoc | 2 ++ docs/src/main/asciidoc/vertx-reference.adoc | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc b/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc index 1d8a79c790180..a31ed1dc2855f 100644 --- a/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc +++ b/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc @@ -319,7 +319,9 @@ as follows: [source,java] ---- import java.util.Collections; +import org.jboss.resteasy.annotations.jaxrs.PathParam; import org.eclipse.microprofile.faulttolerance.Fallback; + ... public class CoffeeResource { ... diff --git a/docs/src/main/asciidoc/vertx-reference.adoc b/docs/src/main/asciidoc/vertx-reference.adoc index 4d8c75b158cf1..a912b7165d4b9 100644 --- a/docs/src/main/asciidoc/vertx-reference.adoc +++ b/docs/src/main/asciidoc/vertx-reference.adoc @@ -250,6 +250,18 @@ Consider these endpoints: [source,java] ---- +package org.acme.vertx; + +import io.vertx.core.json.JsonObject; +import io.vertx.core.json.JsonArray; + +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import org.jboss.resteasy.annotations.jaxrs.PathParam; + @Path("/hello") @Produces(MediaType.APPLICATION_JSON) public class VertxJsonResource {