Skip to content

Instantly share code, notes, and snippets.

@weissjeffm
Created September 11, 2014 16:13
Show Gist options
  • Select an option

  • Save weissjeffm/da5f722d72b49584a3f9 to your computer and use it in GitHub Desktop.

Select an option

Save weissjeffm/da5f722d72b49584a3f9 to your computer and use it in GitHub Desktop.
public class Foo {
public static void test(){
try {
System.out.println("running test");
}
finally {
System.out.println("Cleaning up test");
}
}
public static void handler(){
try {
System.out.println("starting test");
test();
}
catch (Exception e) {
System.out.println("test failed");
}
finally {
System.out.println("test runner cleaning up");
}
}
public static void main(String[] args){
handler();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment