if (DEBUG)
System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base]
+", "+this.ranges[base+1]
+"], ["+this.ranges[target]
+", "+this.ranges[target+1]
+"] -> ["+this.ranges[base]
+", "+this.ranges[target+1]
+"]");
if (DEBUG)
System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base]
+", "+this.ranges[base+1]
+"], ["+this.ranges[target]
+", "+this.ranges[target+1]
+"] -> ["+this.ranges[base]
+", "+this.ranges[target+1]
+"]");
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
Method name: void compactRanges()
|
|
Method name: void compactRanges()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | if (DEBUG)↵ | | 1 | if (DEBUG)↵
|
2 | System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base]↵ | | 2 | System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base]↵
|
3 | +", "+this.ranges[base+1]↵ | | 3 | +", "+this.ranges[base+1]↵
|
4 | +"], ["+this.ranges[target]↵ | | 4 | +"], ["+this.ranges[target]↵
|
5 | +", "+this.ranges[target+1]↵ | | 5 | +", "+this.ranges[target+1]↵
|
6 | +"] -> ["+this.ranges[base]↵ | | 6 | +"] -> ["+this.ranges[base]↵
|
7 | +", "+this.ranges[target+1]↵ | | 7 | +", "+this.ranges[target+1]↵
|
8 | +"]"); | | 8 | +"]");
|
See real code fragment |
|
See real code fragment |
Summary
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 7 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
18 | if (DEBUG) | | 28 | if (DEBUG) |
19 | System.err.println("Token#compactRanges(): Compaction: [" + this.ranges[base] + ", " + this.ranges[base + 1] + "], [" + this.ranges[target] + ", " + this.ranges[target + 1] + "] -> [" + this.ranges[base] + ", " + this.ranges[target + 1] + "]"); | | 29 | System.err.println("Token#compactRanges(): Compaction: [" + this.ranges[base] + ", " + this.ranges[base + 1] + "], [" + this.ranges[target] + ", " + this.ranges[target + 1] + "] -> [" + this.ranges[base] + ", " + this.ranges[target + 1] + "]"); |
Precondition Violations (0)
Row |
Violation |