CPD Results

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

Duplications

FileLine
org\fosstrak\epcis\queryclient\QueryClientGui.java1539
org\fosstrak\epcis\queryclient\QueryClientGui.java1587
                debug("epcList:\t");
                table[row][5] = "";
                for (EPC epc : e.getEpcList().getEpc()) {
                    debug(" '" + epc.getValue() + "'");
                    table[row][5] = table[row][5] + "'" + epc.getValue() + "' ";
                }
                debug("\n");
                debug("action:\t\t" + e.getAction().toString() + "\n");
                table[row][6] = e.getAction().toString();
                debug("bizStep:\t" + e.getBizStep() + "\n");
                table[row][7] = e.getBizStep();
                debug("disposition:\t" + e.getDisposition() + "\n");
                table[row][8] = e.getDisposition();
                if (e.getReadPoint() != null) {
                    debug("readPoint:\t" + e.getReadPoint().getId() + "\n");
                    table[row][9] = e.getReadPoint().getId();
                } else {
                    debug("readPoint:\tnull\n");
                }
                if (e.getBizLocation() != null) {
                    debug("bizLocation:\t" + e.getBizLocation().getId() + "\n");
                    table[row][10] = e.getBizLocation().getId();
                } else {
                    debug("bizLocation:\tnull\n");
                }
                if (e.getBizTransactionList() != null) {
                    debug("bizTrans:\tType, ID\n");
                    table[row][11] = "";
                    for (BusinessTransactionType bizTrans : e.getBizTransactionList().getBizTransaction()) {
                        debug("\t'" + bizTrans.getType() + "', '" + bizTrans.getValue() + "'\n");
                        table[row][11] = table[row][11] + "'" + bizTrans.getType() + ", " + bizTrans.getValue()
                                + "' ; ";
                    }
                    if (!"".equals(table[row][11])) {
                        // remove last "; "
                        table[row][11] = ((String) table[row][11]).substring(0, ((String) table[row][11]).length() - 2);
                    }
                } else {
                    debug("bizTrans:\tnull\n");
                }
                debug("\n");

            } else if (event instanceof AggregationEventType) {
FileLine
org\fosstrak\epcis\queryclient\QueryClientGui.java1541
org\fosstrak\epcis\queryclient\QueryClientGui.java1637
                for (EPC epc : e.getChildEPCs().getEpc()) {
                    debug(" '" + epc.getValue() + "'");
                    table[row][5] = table[row][5] + "'" + epc.getValue() + "' ";
                }
                debug("\n");
                debug("action:\t\t" + e.getAction().toString() + "\n");
                table[row][6] = e.getAction().toString();
                debug("bizStep:\t" + e.getBizStep() + "\n");
                table[row][7] = e.getBizStep();
                debug("disposition:\t" + e.getDisposition() + "\n");
                table[row][8] = e.getDisposition();
                if (e.getReadPoint() != null) {
                    debug("readPoint:\t" + e.getReadPoint().getId() + "\n");
                    table[row][9] = e.getReadPoint().getId();
                } else {
                    debug("readPoint:\tnull\n");
                }
                if (e.getBizLocation() != null) {
                    debug("bizLocation:\t" + e.getBizLocation().getId() + "\n");
                    table[row][10] = e.getBizLocation().getId();
                } else {
                    debug("bizLocation:\tnull\n");
                }
                if (e.getBizTransactionList() != null) {
                    debug("bizTrans:\tType, ID\n");
                    table[row][11] = "";
                    for (BusinessTransactionType bizTrans : e.getBizTransactionList().getBizTransaction()) {
                        debug("\t'" + bizTrans.getType() + "', '" + bizTrans.getValue() + "'\n");
                        table[row][11] = table[row][11] + "'" + bizTrans.getType() + ", " + bizTrans.getValue()
                                + "' ; ";
                    }
                    if (!"".equals(table[row][11])) {
                        // remove last "; "
                        table[row][11] = ((String) table[row][11]).substring(0, ((String) table[row][11]).length() - 2);
                    }
                } else {
                    debug("bizTrans:\tnull\n");
                }
                debug("\n");

            } else if (event instanceof QuantityEventType) {
FileLine
org\fosstrak\epcis\queryclient\QueryClientGui.java1547
org\fosstrak\epcis\queryclient\QueryClientGui.java1684
                table[row][5] = e.getEpcClass();
                debug("bizStep:\t" + e.getBizStep() + "\n");
                table[row][7] = e.getBizStep();
                debug("disposition:\t" + e.getDisposition() + "\n");
                table[row][8] = e.getDisposition();
                if (e.getReadPoint() != null) {
                    debug("readPoint:\t" + e.getReadPoint().getId() + "\n");
                    table[row][9] = e.getReadPoint().getId();
                } else {
                    debug("readPoint:\tnull\n");
                }
                if (e.getBizLocation() != null) {
                    debug("bizLocation:\t" + e.getBizLocation().getId() + "\n");
                    table[row][10] = e.getBizLocation().getId();
                } else {
                    debug("bizLocation:\tnull\n");
                }
                if (e.getBizTransactionList() != null) {
                    debug("bizTrans:\tType, ID\n");
                    table[row][11] = "";
                    for (BusinessTransactionType bizTrans : e.getBizTransactionList().getBizTransaction()) {
                        debug("\t'" + bizTrans.getType() + "', '" + bizTrans.getValue() + "'\n");
                        table[row][11] = table[row][11] + "'" + bizTrans.getType() + ", " + bizTrans.getValue()
                                + "' ; ";
                    }
                    if (!"".equals(table[row][11])) {
                        // remove last "; "
                        table[row][11] = ((String) table[row][11]).substring(0, ((String) table[row][11]).length() - 2);
                    }
                } else {
                    debug("bizTrans:\tnull\n");
                }
                debug("\n");
            }