if (testElement instanceof TestElement) {
String comment = ((TestElement) testElement).getComment();
if (comment != null && comment.length() > 0) {
return comment;
}
}
if (treePath != null) {
return getArray(Arrays.asList(treePath));
}
return getArray();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/MainFrame.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/HashTree.java
|
Method name: String getToolTipText(MouseEvent)
|
|
Method name: Object[] getArray(Object[])
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if (testElement instanceof TestElement) {↵ | | 1 | if (t↵
|
2 | String comment = ((TestElement) testElement).getComment();↵ | | |
|
3 | if (comment != null && comment.length() > 0) {↵ | | |
|
4 | return comment;↵ | | |
|
5 | }↵ | | |
|
6 | } | | 2 | reePath != null) {↵
|
| | | 3 | return getArray(Arrays.asList(treePath));↵
|
| | | 4 | }↵
|
| | | 5 | return getArray();
|
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 |