File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/test/java/com/github/spriet2000/vertx/handlers/http/tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Inspired by ['Build You Own Web Framework In Go'](https://www.nicolasmerouze.com
1212
1313``` java
1414
15- BiHandlers<HttpServerRequest , Object > handlers = compose(
15+ BiHandlers<HttpServerRequest , Void > handlers = compose(
1616 new ExceptionHandler<> (),
1717 new ResponseTimeHandler<> (),
1818 new TimeoutHandler<> (vertx),
@@ -21,7 +21,7 @@ Inspired by ['Build You Own Web Framework In Go'](https://www.nicolasmerouze.com
2121 n. accept(req, arg);
2222 });
2323
24- BiConsumer<HttpServerRequest , Object > handler = handlers. apply(
24+ BiConsumer<HttpServerRequest , Void > handler = handlers. apply(
2525 (e, a) - > logger. error(a),
2626 (e, a) - > logger. info(a));
2727
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public void setup() {
3232 @ Test
3333 public void example1 () {
3434
35- BiHandlers <HttpServerRequest , Object > handlers = compose (
35+ BiHandlers <HttpServerRequest , Void > handlers = compose (
3636 new ExceptionHandler <>(),
3737 new ResponseTimeHandler <>(),
3838 new TimeoutHandler <>(vertx ),
@@ -41,7 +41,7 @@ public void example1() {
4141 n .accept (req , arg );
4242 });
4343
44- BiConsumer <HttpServerRequest , Object > handler = handlers .apply (
44+ BiConsumer <HttpServerRequest , Void > handler = handlers .apply (
4545 (e , a ) -> logger .error (a ),
4646 (e , a ) -> logger .info (a ));
4747
You can’t perform that action at this time.
0 commit comments