if (dialog.success()) { destinationFolder = dialog.getSelectedFolder(); //destinationButton.setText(destinationFolder.getTreePath()); destinationButton.setText(destinationFolder.getName()); updateCanFinish(); }
if (fc.showOpenDialog(getComponent()) == JFileChooser.APPROVE_OPTION) { sourceFile = fc.getSelectedFile(); sourceButton.setText(sourceFile.getPath()); updateCanFinish(); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/LocationStep.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/LocationStep.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (dialog.success()) {
1
if (
2
                destinationFolder = dialog
2
fc.showOpenDialog(getComponent()) == JFileChooser.APPROVE_OPTION) {
3
.getSelectedFolder();
3
                sourceFile = fc.getSelectedFile();
4
                //destinationButton.setText(destinationFolder.getTreePath());
4
                
5
                destinationButton.setText(destinationFolder.getName());
5
sourceButton.setText(sourceFile.getPath());
6
                updateCanFinish();
6
                updateCanFinish();
7
            }
7
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in the same method
Number of node comparisons1