X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=README.md;h=2a62f1c1eb6531b151b60b6aec531883b5e10593;hb=4ac6237dc39be3c76def4f5c18f79c15591e3c0b;hp=2165e4f24d31d509ffbae960340a9bc0c905a088;hpb=1596e11a1274874b8b644212dceaeb83d7cf7f63;p=nikiroo-utils.git diff --git a/README.md b/README.md index 2165e4f..2a62f1c 100644 --- a/README.md +++ b/README.md @@ -93,13 +93,9 @@ class MyApplication extends TApplication { new MyWindow(this); } - public static void main(String [] args) { - try { - MyApplication app = new MyApplication(); - (new Thread(app)).start(); - } catch (Throwable t) { - t.printStackTrace(); - } + public static void main(String [] args) throws Exception { + MyApplication app = new MyApplication(); + (new Thread(app)).start(); } } ```