public static boolean test(int arg) { TestClass object = null; if (arg == 0) { object = obj; } return object.method(); }
public static int test(int i) throws Exception { if (i == 0) { return 0; } return object.test2(i); }