From 4ac6237dc39be3c76def4f5c18f79c15591e3c0b Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Fri, 22 Feb 2019 18:52:22 -0600 Subject: [PATCH] eliminate printStackTrace() in example --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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(); } } ``` -- 2.27.0