p = property("scriptLanguage"); // $NON-NLS-1$
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, ""); // $NON-NLS-1$
createPropertyGroup("scriptingLanguage", // $NON-NLS-1$
new String[] { "scriptLanguage" }); // $NON-NLS-1$
p = property("parameters"); // $NON-NLS-1$
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, "");
p = property("filename"); // $NON-NLS-1$
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, ""); // $NON-NLS-1$
createPropertyGroup("filenameGroup", // $NON-NLS-1$
new String[] { "filename" }); // $NON-NLS-1$
p = property("script"); // $NON-NLS-1$
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, "");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/BSFBeanInfoSupport.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/BSFBeanInfoSupport.java
|
Method name: void BSFBeanInfoSupport(Class)
|
|
Method name: void BSFBeanInfoSupport(Class)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | p = property("scriptLanguage"); // $NON-NLS-1$↵ | | 1 | p = property("filename"); // $NON-NLS-1$↵
|
2 | p.setValue(NOT_UNDEFINED, Boolean.TRUE);↵ | | 2 | p.setValue(NOT_UNDEFINED, Boolean.TRUE);↵
|
3 | p.setValue(DEFAULT, ""); // $NON-NLS-1$↵ | | 3 | p.setValue(DEFAULT, ""); // $NON-NLS-1$↵
|
|
4 | createPropertyGroup("scriptingLanguage", // $NON-NLS-1$↵ | | 4 | createPropertyGroup("filenameGroup", // $NON-NLS-1$↵
|
5 | new String[] { "scriptLanguage" }); // $NON-NLS-1$↵ | | 5 | new String[] { "filename" }); // $NON-NLS-1$↵
|
6 | ↵ | | |
|
7 | p = property("parameters"); // $NON-NLS-1$↵ | | 6 | p = property("script"); // $NON-NLS-1$↵
|
8 | p.setValue(NOT_UNDEFINED, Boolean.TRUE);↵ | | 7 | p.setValue(NOT_UNDEFINED, Boolean.TRUE);↵
|
9 | p.setValue(DEFAULT, ""); | | 8 | p.setValue(DEFAULT, "");
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 7 |
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 |
3 | p = property("scriptLanguage"); | | 11 | p = property("filename"); |
4 | p.setValue(NOT_UNDEFINED, Boolean.TRUE); | | 12 | p.setValue(NOT_UNDEFINED, Boolean.TRUE); |
5 | p.setValue(DEFAULT, ""); | | 13 | p.setValue(DEFAULT, ""); |
6 | createPropertyGroup("scriptingLanguage", new String[] {"scriptLanguage"}); | | 14 | createPropertyGroup("filenameGroup", new String[] {"filename"}); |
7 | p = property("parameters"); | | 15 | p = property("script"); |
8 | p.setValue(NOT_UNDEFINED, Boolean.TRUE); | | 16 | p.setValue(NOT_UNDEFINED, Boolean.TRUE); |
9 | p.setValue(DEFAULT, ""); | | 17 | p.setValue(DEFAULT, ""); |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables p |