Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 6, 2024
1 parent e15a86c commit bb31186
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.vertx.example.sqlclient.simple;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.vertx.example.sqlclient.template;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.vertx.example.sqlclient.template_mapping;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.vertx.example.sqlclient.transaction;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.vertx.example.sqlclient.transaction_rollback;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package io.vertx.example.virtualthreads;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.ThreadingModel;
import io.vertx.core.Vertx;
import io.vertx.core.*;
import io.vertx.core.http.*;
import io.vertx.ext.web.client.WebClient;

public class WebClientExample extends AbstractVerticle {
public class WebClientExample extends VerticleBase {

public static void main(String[] args) {
var vertx = Vertx.vertx();
Expand All @@ -17,7 +14,7 @@ public static void main(String[] args) {
}

@Override
public void start() {
public Future<?> start() throws Exception {
var server = vertx.createHttpServer();
server.requestHandler(request -> {
request.response().end("Hello World");
Expand All @@ -34,5 +31,6 @@ public void start() {
var status = resp.statusCode();
var body = resp.body();
System.out.println("Got response status=" + status + " body='" + body + "'");
return super.start();
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.vertx.example.tracing;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.http.HttpResponseExpectation;
import io.vertx.ext.web.client.WebClient;

import static io.vertx.core.http.HttpResponseExpectation.*;
Expand Down

0 comments on commit bb31186

Please sign in to comment.