if(nr != 4) {
channel.close();
channel = null;
throw new IOException("Connection Closed: "+nr);
}
if (popup != null) {
popup.pack();
popup.show(tree, 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/protocol/http/sampler/AjpSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/tree/ReportTreeListener.java
|
Method name: int getMessage()
|
|
Method name: void displayPopUp(MouseEvent, JPopupMenu)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | if(nr != 4) {↵ | | 1 | if↵
|
2 | channel.close();↵ | | |
|
3 | channel = null;↵ | | |
|
4 | throw new IOException("Connection Closed: "+nr);↵ | | |
|
5 | ↵ | | 2 | (popup != null) {↵
|
| | | 3 | popup.pack();↵
|
| | | 4 | popup.show(tree, e.getX(), e.getY());↵
|
| | | 5 | popup.setVisible(true);↵
|
| | | 6 | popup.requestFocus();↵
|
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 |