Source:
public void nonStaticMain(String[] args) { if (args.length == 0) args = new String[] {"help"}; String command = args[0]; String[] args2 = new String[args.length - 1]; for (int i = 1; i < args.length; i++) { args2[i - 1] = args[i]; } CommandHandler handler = null; List<CommandHandler> allHandlers = new ArrayList<>(); allHandlers.addAll(handlers); for (CommandHandler h : allHandlers) { if (h.handles(command)) { handler = h; break; } } if (handler == null) { System.out.println("Unrecognized command: " + command + "."); System.out.println("For more help, invoke Randoop " + "with \"help\" as its sole argument."); System.exit(1); } boolean success = false; try { success = handler.handle(args2); if (!success) { System.err.println("The command you issued returned a failing status flag."); } } catch (RandoopUsageError e) { System.out.println(); if (e.getMessage() != null) { System.out.println(e.getMessage()); } System.out.println( "To get help on this command, invoke Randoop with arguments: help " + handler.fcommand); System.exit(1); } catch (BugInRandoopException e) { System.out.println(); System.out.println("Randoop failed in an unexpected way."); System.out.println("Please report at <LINK_0>."); StringPrintWriter out = new StringPrintWriter(); e.printStackTrace(out); System.out.println(out.getString()); System.exit(1); } catch (Throwable e) { System.out.println(); System.out.println("Throwable thrown while handling command: " + e); e.printStackTrace(); System.err.flush(); success = false; } finally { if (!success) { System.out.println(); System.out.println("Randoop failed."); System.out.println("Last sequence under execution: "); System.out.println(AbstractGenerator.currSeq); System.exit(1); } } }

Target:
public void nonStaticMain(String[] args) { if (args.length == 0) args = new String[] {"help"}; String command = args[0]; String[] args2 = new String[args.length - 1]; for (int i = 1; i < args.length; i++) { args2[i - 1] = args[i]; } CommandHandler handler = null; List<CommandHandler> allHandlers = new ArrayList<>(); allHandlers.addAll(handlers); for (CommandHandler h : allHandlers) { if (h.handles(command)) { handler = h; break; } } if (handler == null) { System.out.println("Unrecognized command: " + command + "."); System.out.println("For more help, invoke Randoop " + "with \"help\" as its sole argument."); System.exit(1); } boolean success = false; try { success = handler.handle(args2); if (!success) { System.err.println("The command you issued returned a failing status flag."); } } catch (RandoopUsageError e) { System.out.println(); if (e.getMessage() != null) { System.out.println(e.getMessage()); } System.out.println( "To get help on this command, invoke Randoop with arguments: help " + handler.fcommand); System.exit(1); } catch (BugInRandoopException e) { System.out.println(); System.out.println("Randoop failed in an unexpected way."); System.out.println("Please report at <LINK_0> ."); e.printStackTrace(System.out); System.exit(1); } catch (Throwable e) { System.out.println(); System.out.println("Throwable thrown while handling command: " + e); e.printStackTrace(System.out); success = false; } finally { if (!success) { System.out.println(); System.out.println("Randoop failed."); System.out.println("Last sequence under execution: "); System.out.println(AbstractGenerator.currSeq); System.exit(1); } } }