Skip to content

Commit d2251c6

Browse files
Rene SprietsmaRene Sprietsma
authored andcommitted
tha void
1 parent 4b33010 commit d2251c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/test/java/com/github/spriet2000/vertx/handlers/http/tests/Example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)