return MenuFactory.getDefaultConfigElementMenu();
}
else if(Assertion.class.isAssignableFrom(testBeanClass))
{
return MenuFactory.getDefaultAssertionMenu();
return MenuFactory.getDefaultTimerMenu();
}
else if(Sampler.class.isAssignableFrom(testBeanClass))
{
return MenuFactory.getDefaultSamplerMenu();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
|
Method name: JPopupMenu createPopupMenu()
|
|
Method name: JPopupMenu createPopupMenu()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | return MenuFactory.getDefaultConfigElementMenu();↵ | | 1 | return MenuFactory.getDefaultTimerMenu();↵
|
2 | }↵ | | 2 | }↵
|
3 | else if(Assertion.class.isAssignableFrom(testBeanClass))↵ | | 3 | else if(Sampler.class.isAssignableFrom(testBeanClass))↵
|
4 | {↵ | | 4 | {↵
|
5 | return MenuFactory.getDefaultAssertionMenu(); | | 5 | return MenuFactory.getDefaultSamplerMenu();
|
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 |
6 | return MenuFactory.getDefaultConfigElementMenu(); | | 2 | return MenuFactory.getDefaultTimerMenu(); |
Precondition Violations (0)
Row |
Violation |