File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/IPCHelper.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/spam/spamassassin/IPCHelper.java | |||
Method name: void executeCommand(String[])
|
Method name: void executeCommand(String)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | this.p = Runtime.getRuntime().exec(command);↵ | 1 | p = Runtime.getRuntime().exec(command);↵ | |
2 | errorStream = new StreamThread(p.getErrorStream());↵ | 2 | errorStream = new StreamThread(p.getErrorStream());↵ | |
3 | outputStream = new StreamThread(p.getInputStream());↵ | 3 | outputStream = new StreamThread(p.getInputStream());↵ | |
4 | inputStream = p.getOutputStream();↵ | 4 | inputStream = p.getOutputStream();↵ | |
5 | errorStream.start();↵ | 5 | errorStream.start();↵ | |
6 | outputStream.start(); | 6 | outputStream.start(); | |
See real code fragment | See real code fragment |
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 different classes |
Number of node comparisons | 21 |
Number of mapped statements | 5 |
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 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | p = Runtime.getRuntime().exec(command); | |||||||||||||||
1 | this.p = Runtime.getRuntime().exec(command); | | |||||||||||||||
2 | errorStream = new StreamThread(p.getErrorStream()); |
| 2 | errorStream = new StreamThread(p.getErrorStream()); | |||||||||||||
3 | outputStream = new StreamThread(p.getInputStream()); |
| 3 | outputStream = new StreamThread(p.getInputStream()); | |||||||||||||
4 | inputStream = p.getOutputStream(); | 4 | inputStream = p.getOutputStream(); | ||||||||||||||
5 | errorStream.start(); |
| 5 | errorStream.start(); | |||||||||||||
6 | outputStream.start(); |
| 6 | outputStream.start(); |
Row | Violation |
---|