The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
org/gearman/example/EchoClient.java | 30 |
org/gearman/example/ReverseClient.java | 50 |
} public void shutdown() throws IllegalStateException { if (client == null) { throw new IllegalStateException("No client to shutdown"); } client.shutdown(); } public static void main(String[] args) { if (args.length == 0 || args.length > 3) { usage(); return; } String host = Constants.GEARMAN_DEFAULT_TCP_HOST; int port = Constants.GEARMAN_DEFAULT_TCP_PORT; String payload = args[args.length - 1]; for (String arg : args) { if (arg.startsWith("-h")) { host = arg.substring(2); } else if (arg.startsWith("-p")) { port = Integer.parseInt(arg.substring(2)); } } |