Intro to Vert.x formatting changes
@@ -10,6 +10,11 @@ import io.vertx.core.Vertx;
public class HelloVerticle extends AbstractVerticle {
private static final Logger LOGGER = LoggerFactory.getLogger(HelloVerticle.class);
+ public static void main(String[] args) {
+ Vertx vertx = Vertx.vertx();
+ vertx.deployVerticle(new HelloVerticle());
+ }
+
@Override
public void start(Future<Void> future) {
LOGGER.info("Welcome to Vertx");
@@ -19,10 +24,5 @@ public class HelloVerticle extends AbstractVerticle {
public void stop() {
LOGGER.info("Shutting down application");
}
-
- public static void main(String[] args) {
- Vertx vertx = Vertx.vertx();
- vertx.deployVerticle(new HelloVerticle());
- }
}
