Skip to content

Commit 93319a7

Browse files
committed
Properly set io.quarkus.vertx.http.deployment.spi.RouteBuildItem.typeOfHandler
Closes: #48215
1 parent da79e88 commit 93319a7

File tree

1 file changed

+3
-1
lines changed
  • extensions/vertx-http/deployment-spi/src/main/java/io/quarkus/vertx/http/deployment/spi

1 file changed

+3
-1
lines changed

extensions/vertx-http/deployment-spi/src/main/java/io/quarkus/vertx/http/deployment/spi/RouteBuildItem.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public enum RouteType {
8181

8282
private final Handler<RoutingContext> handler;
8383

84-
private final HandlerType typeOfHandler = HandlerType.NORMAL;
84+
private final HandlerType typeOfHandler;
8585

8686
private final boolean displayOnNotFoundPage;
8787
private final String notFoundPageTitle;
@@ -98,6 +98,7 @@ public RouteBuildItem(RouteType typeOfRoute, String path, Consumer<Route> custom
9898
String routeConfigKey, OptionalInt order) {
9999
this.order = order;
100100
this.typeOfRoute = typeOfRoute;
101+
this.typeOfHandler = HandlerType.NORMAL;
101102
this.path = path;
102103
this.handler = handler;
103104
this.displayOnNotFoundPage = displayOnNotFoundPage;
@@ -111,6 +112,7 @@ public RouteBuildItem(RouteType typeOfRoute, String path, Consumer<Route> custom
111112
private RouteBuildItem(Builder builder) {
112113
this.order = builder.order;
113114
this.typeOfRoute = builder.typeOfRoute;
115+
this.typeOfHandler = builder.typeOfHandler;
114116
this.path = builder.path;
115117
this.handler = builder.handler;
116118
this.displayOnNotFoundPage = builder.displayOnNotFoundPage;

0 commit comments

Comments
 (0)