CPD Results

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

Duplications

FileLine
net\sourceforge\rconed\CODRcon.java86
net\sourceforge\rconed\Rcon.java56
            throw new ResponseEmpty();
        }

        return response;
    }

    private static DatagramPacket getDatagramPacket(String request, InetAddress inet, int port) {
        byte first = -1;
        byte last = 0;
        byte[] buffer = request.getBytes();
        byte[] commandBytes = new byte[buffer.length + 5];
        commandBytes[0] = first;
        commandBytes[1] = first;
        commandBytes[2] = first;
        commandBytes[3] = first;
        for (int i = 0; i < buffer.length; i++) {
            commandBytes[i + 4] = buffer[i];
        }
        commandBytes[buffer.length + 4] = last;

        return new DatagramPacket(commandBytes, commandBytes.length, inet, port);
    }

    private static RconPacket[] sendRequest(int localPort, String ipStr, int port, String password,