File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java | |||
Method name: void execute()
|
Method name: void doSingleTransfer()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | OutputStream out = channel.getOutputStream();↵ | 1 | OutputStream out = channel.getOutputStream();↵ | |
2 | InputStream in = channel.getInputStream();↵ | 2 | InputStream in = channel.getInputStream();↵ | |
3 | channel.connect();↵ | 3 | channel.connect();↵ | |
4 | sendAck(out); | 4 | waitForAck(in); | |
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 having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | OutputStream out = channel.getOutputStream(); |
| 5 | InputStream in = channel.getInputStream(); | ||||||||||||||||||||
8 | InputStream in = channel.getInputStream(); |
| 4 | OutputStream out = channel.getOutputStream(); | ||||||||||||||||||||
9 | channel.connect(); | 6 | channel.connect(); | |||||||||||||||||||||
10 | sendAck(out); |
| 7 | waitForAck(in); |
Row | Violation |
---|---|
1 | Expression sendAck(out) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression waitForAck(in) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression sendAck(out) is a void method call, and thus it cannot be parameterized |
4 | Expression waitForAck(in) is a void method call, and thus it cannot be parameterized |
5 | Clone fragment #1 returns variables out, in , while Clone fragment #2 returns variables out, in |