Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 7.0.0.

Duplications

File Project Line
org/newsclub/net/unix/demo/rmi/SimpleRMIClient.java junixsocket-demo 34
org/newsclub/net/unix/demo/rmi/SimpleRMIClientActingAsServer.java junixsocket-demo 37
public final class SimpleRMIClient {
  public static void main(String[] args) throws IOException, NotBoundException {
    AFUNIXNaming naming = AFUNIXNaming.getInstance();

    System.out.println("Locating registry...");
    final Registry registry = naming.getRegistry();
    System.out.println(registry);
    System.out.println();

    HelloWorld obj = (HelloWorld) registry.lookup("helloWorld");
    System.out.println("HelloWorld instance:");
    System.out.println("    " + obj);
    System.out.println("    " + RemotePeerInfo.remotePeerCredentials(obj));
    System.out.println();