cl.show(cards, CARDS_RENAME);
} else if (compare.isSelected()) {
cl.show(cards, CARDS_COMPARE);
} else if (searchTest.isSelected()) {
cl.show(cards, CARDS_SEARCH);
cl.show(cards, CARDS_BIND);
} else if (rename.isSelected()) {
cl.show(cards, CARDS_RENAME);
} else if (compare.isSelected()) {
cl.show(cards, CARDS_COMPARE);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java
|
Method name: void itemStateChanged(ItemEvent)
|
|
Method name: void itemStateChanged(ItemEvent)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
| | | 1 | cl.show(cards, CARDS_BIND);↵
|
| | | 2 | } else if (rename.isSelected()) {↵
|
1 | cl.show(cards, CARDS_RENAME);↵ | | 3 | cl.show(cards, CARDS_RENAME);↵
|
2 | } else if (compare.isSelected()) {↵ | | 4 | } else if (compare.isSelected()) {↵
|
3 | cl.show(cards, CARDS_COMPARE);↵ | | 5 | cl.show(cards, CARDS_COMPARE);
|
4 | } else if (searchTest.isSelected()) {↵ | | | |
5 | cl.show(cards, CARDS_SEARCH); | | | |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | cl.show(cards, CARDS_RENAME); | | 9 | cl.show(cards, CARDS_BIND); |
Precondition Violations (0)
Row |
Violation |