File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/StringSegment.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/StringSegment.java | |||
Method name: void writeAscii(OutputStream, int)
|
Method name: void write(Writer, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | os.write(outputbytes, 0, length);↵ | 1 | os.write(outputchars, 0, length);↵ | |
2 | count += length;↵ | 2 | count += length;↵ | |
3 | if (count > flushThreshold)↵ | 3 | if (count > flushThreshold)↵ | |
4 | {↵ | 4 | {↵ | |
5 | os.flush();↵ | 5 | os.flush();↵ | |
6 | count = 0;↵ | 6 | count = 0;↵ | |
7 | } | 7 |
| |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 5 |
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) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | os.write(outputbytes, 0, length); |
| 26 | os.write(outputchars, 0, length); | ||||||||||||||||||
34 | count += length; | 27 | count += length; | |||||||||||||||||||
35 | if (count > flushThreshold) | 28 | if (count > flushThreshold) | |||||||||||||||||||
36 | os.flush(); |
| 29 | os.flush(); | ||||||||||||||||||
37 | count = 0; | 30 | count = 0; |
Row | Violation |
---|---|
1 | Type byte[] of variable outputbytes does not match with type char[] of variable outputchars |
2 | Type java.io.OutputStream of variable os does not match with type java.io.Writer of variable os |
3 | Type java.io.OutputStream of variable os does not match with type java.io.Writer of variable os |