# HG changeset patch # User Mark Wielaard # Date 1335099277 -7200 # Node ID 80cb82d2b761bcca5303776079f9e36552873aa7 # Parent ec7e39a1bd54cfa634075000df1eac31e59aec5c Hello.java (hello): Catch any sleep exception. diff -r ec7e39a1bd54 -r 80cb82d2b761 ChangeLog --- a/ChangeLog Sun Apr 22 14:48:59 2012 +0200 +++ b/ChangeLog Sun Apr 22 14:54:37 2012 +0200 @@ -1,3 +1,7 @@ +2012-04-22 Mark Wielaard + + * Hello.java (hello): Catch any sleep exception. + 2012-04-22 Mark Wielaard * Hello.java (hello): Thread.sleep() a bit. diff -r ec7e39a1bd54 -r 80cb82d2b761 Hello.java --- a/Hello.java Sun Apr 22 14:48:59 2012 +0200 +++ b/Hello.java Sun Apr 22 14:54:37 2012 +0200 @@ -49,7 +49,14 @@ System.out.println ("yarly?"); System.out.println ("Slow and fuzzy"); System.out.println ("I'll repeat the original question"); - Thread.sleep(1); + try + { + Thread.sleep(1); + } + catch (InterruptedException ie) + { + /* Ignore short sleep. */ + } System.out.println ("Are you now or have you ever been"); System.out.println ("a member of the common ass party"); System.out.println ("or any other common ass organization?");