log.warn("Shouldn't be here");
if (popup != null) {
popup.pack();
popup.show(tree, e.getX(), e.getY());
popup.setVisible(true);
popup.requestFocus();
}
if (popup != null) {
log.debug("Showing pop up for " + invoker + " at x,y = " + e.getX() + "," + e.getY());
popup.pack();
popup.show(invoker, e.getX(), e.getY());
popup.setVisible(true);
popup.requestFocus();
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/tree/JMeterTreeListener.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/ReportGuiPackage.java
|
Method name: void displayPopUp(MouseEvent, JPopupMenu)
|
|
Method name: void displayPopUp(Component, MouseEvent, JPopupMenu)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | log.warn("Shouldn't be here");↵ | | |
|
2 | if (↵ | | 1 | if (popup != null) {↵
|
3 | popup != null) {↵ | | 2 | log.debug("Showing pop up for " + invoker + " at x,y = " + e.getX() + "," + e.getY());↵
|
|
4 | popup.pack();↵ | | 3 | popup.pack();↵
|
5 | popup.show(tree, e.getX(), e.getY());↵ | | 4 | popup.show(invoker, e.getX(), e.getY());↵
|
6 | popup.setVisible(true);↵ | | 5 | popup.setVisible(true);↵
|
7 | popup.requestFocus();↵ | | 6 | popup.requestFocus();↵
|
8 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 | 30 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.4 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | log.warn("Shouldn't be here"); | | | |
2 | if (popup != null) | | 1 | if (popup != null) |
| | | 2 | log.debug("Showing pop up for " + invoker + " at x,y = " + e.getX() + "," + e.getY()); |
3 | | | 3 | |
4 | popup.show(tree, e.getX(), e.getY()); | | 4 | popup.show(invoker, e.getX(), e.getY()); |
5 | | | 5 | |
6 | | | 6 | |
Precondition Violations (0)
Row |
Violation |