File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java | |||
Method name: void loadJMeterProperties(String)
|
Method name: SampleResult sample(Entry)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | File f = new File(file);↵ | 1 | File infile = new File(↵ | |
2 | is = new FileInputStream(f↵ | 2 | local);↵ | |
3 | );↵ | 3 | res.setBytes((int)infile.length());↵ | |
4 | p.load(is); | 4 | input = new FileInputStream(infile); | |
See real code fragment | See real code fragment |
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 different classes |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | File f = new File(file); |
| 31 | File infile = new File(local); | |||||||||||||
| 32 | res.setBytes((int)infile.length()); | |||||||||||||||
5 | is = new FileInputStream(f); |
| 33 | input = new FileInputStream(infile); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables is , while Clone fragment #2 returns variables infile, input |