CPD Results

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

Duplications

FileLine
org\fosstrak\epcis\captureclient\CaptureClientGui.java709
org\fosstrak\epcis\captureclient\CaptureClientGui.java726
                if (!CaptureClientHelper.addChildEpcList(document, root, mwChildEPCsTextField.getText())) {
                    JOptionPane.showMessageDialog(frame, "Please specify at least one EPC", "Error",
                            JOptionPane.ERROR_MESSAGE);
                    return;
                }
                CaptureClientHelper.addAction(document, root, (String) mwActionComboBox.getSelectedItem());
                CaptureClientHelper.addBizStep(document, root, mwBizStepTextField.getText());
                CaptureClientHelper.addDisposition(document, root, mwDispositionTextField.getText());
                CaptureClientHelper.addReadPoint(document, root, mwReadPointTextField.getText());
                CaptureClientHelper.addBizLocation(document, root, mwBizLocationTextField.getText());
                CaptureClientHelper.addBizTransactions(document, root, fromGui(mwBizTransIDFields, mwBizTransTypeFields));
            } else if (EpcisEventType.fromGuiIndex(index) == EpcisEventType.QuantityEvent) {
FileLine
org\fosstrak\epcis\captureclient\CaptureClientGui.java709
org\fosstrak\epcis\captureclient\CaptureClientGui.java760
                if (!CaptureClientHelper.addEpcList(document, root, mwEpcListTextField.getText())) {
                    JOptionPane.showMessageDialog(frame, "Please specify at least one EPC", "Error",
                            JOptionPane.ERROR_MESSAGE);
                    return;
                }
                CaptureClientHelper.addAction(document, root, (String) mwActionComboBox.getSelectedItem());
                CaptureClientHelper.addBizStep(document, root, mwBizStepTextField.getText());
                CaptureClientHelper.addDisposition(document, root, mwDispositionTextField.getText());
                CaptureClientHelper.addReadPoint(document, root, mwReadPointTextField.getText());
                CaptureClientHelper.addBizLocation(document, root, mwBizLocationTextField.getText());