Point p = e.getPoint();
if (e.isPopupTrigger()) {
// show context menu
getPopupMenu().show(e.getComponent(), p.x, p.y);
}
while ((entry = in.getNextEntry()) != null) {
String outFilename = entry.getName();
if (entry.isDirectory()) {
return new File(outFilename);
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/context/ContactDetailPanel.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/io/ZipFileIO.java
|
Method name: void handlePopupEvent(MouseEvent)
|
|
Method name: File getFirstFile(File)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | Point p = e.getPoint↵ | | 1 | while ((entry = in.getNextEntry()) != null) {↵
|
2 | ();↵ | | 2 | String outFilename = entry.getName();↵
|
|
3 | if (e.isPopupTrigger()) {↵ | | 3 | if (e↵
|
4 | // show context menu↵ | | |
|
5 | getPopupMenu().show(e.getComponent(), p.x, p.y);↵ | | 4 | ntry.isDirectory()) {↵
|
| | | 5 | return new File(outFilename);↵
|
| | | 6 | }↵
|
6 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |