currentLineWidth += newString.length();
LOOP: for (int i = newString.length() - 1; i >= 0; --i)
{
switch (newString.charAt(i))
{
case '\n':
case '\r':
{
currentLineWidth = newString.length() - i;
break LOOP;
currentLineWidth += data.length();
LOOP:
for (int i = data.length() - 1; i >= 0; --i)
{
switch (data.charAt(i))
{
case '\n':
case '\r':
{
currentLineWidth = data.length() - i;
break LOOP;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLString.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLString.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | currentLineWidth += newString.length();↵ | | 1 | currentLineWidth += data.length();↵
|
2 | LOOP: ↵ | | 2 | LOOP: ↵
|
3 | for (int i = newString.length() - 1; i >= 0; --i)↵ | | 3 | for (int i = data.length() - 1; i >= 0; --i)↵
|
4 | {↵ | | 4 | ↵
|
| | | 5 | {↵
|
5 | switch (newString.charAt(i))↵ | | 6 | switch (data.charAt(i))↵
|
6 | {↵ | | 7 | {↵
|
7 | case '\n':↵ | | 8 | case '\n':↵
|
8 | case '\r':↵ | | 9 | case '\r':↵
|
9 | {↵ | | 10 | {↵
|
10 | currentLineWidth = newString.length() - i;↵ | | 11 | currentLineWidth = data.length() - i;↵
|
11 | break LOOP;↵ | | 12 | break LOOP;↵
|
12 | | | 13 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |