CloneSet543


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11260.957statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11162
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java
211105
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java
Clone Instance
1
Line Count
11
Source Line
62
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java

                if (this.data.insertedTokens == null) {
                        this.data.insertedTokens = new int[10][];
                        this.data.insertedTokensPosition = new int[10];
                        this.data.insertedTokenUsed = new boolean[10];
                }
                else   if (this.data.insertedTokens.length == this.data.insertedTokensPtr) {
                        int length = this.data.insertedTokens.length;
                        System.arraycopy(this.data.insertedTokens, 0, this.data.insertedTokens = new int[length * 2][], 0, length);
                        System.arraycopy(this.data.insertedTokensPosition, 0, this.data.insertedTokensPosition = new int[length * 2], 0, length);
                        System.arraycopy(this.data.insertedTokenUsed, 0, this.data.insertedTokenUsed = new boolean[length * 2], 0, length);
                       }
                this.data.insertedTokens[this.data.insertedTokensPtr] = reverse(tokens);


Clone Instance
2
Line Count
11
Source Line
105
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java

                if (this.data.removedTokensStart == null) {
                        this.data.removedTokensStart = new int[10];
                        this.data.removedTokensEnd = new int[10];
                        this.data.removedTokenUsed = new boolean[10];
                }
                else   if (this.data.removedTokensStart.length == this.data.removedTokensPtr) {
                        int length = this.data.removedTokensStart.length;
                        System.arraycopy(this.data.removedTokensStart, 0, this.data.removedTokensStart = new int[length * 2], 0, length);
                        System.arraycopy(this.data.removedTokensEnd, 0, this.data.removedTokensEnd = new int[length * 2], 0, length);
                        System.arraycopy(this.data.removedTokenUsed, 0, this.data.removedTokenUsed = new boolean[length * 2], 0, length);
                       }
                this.data.removedTokensStart[this.data.removedTokensPtr] = start;


Clone AbstractionParameter Count: 6Parameter Bindings

if (this.data. [[#variableb68713a0]]== null) {
  this.data. [[#variableb68713a0]]= new int[10] [[#variableb68712e0]];
  this.data. [[#variableb42f7340]]= new int[10];
  this.data. [[#variableb68712a0]]= new boolean[10];
}
else
  if (this.data. [[#variableb68713a0]].length == this.data. [[#variableb5713900]]) {
    int length = this.data. [[#variableb68713a0]].length;
    System.arraycopy(this.data. [[#variableb68713a0]], 0, this.data. [[#variableb68713a0]]= new int[length * 2] [[#variableb68712e0]], 0, length);
    System.arraycopy(this.data. [[#variableb42f7340]], 0, this.data. [[#variableb42f7340]]= new int[length * 2], 0, length);
    System.arraycopy(this.data. [[#variableb68712a0]], 0, this.data. [[#variableb68712a0]]= new boolean[length * 2], 0, length);
  }
this.data. [[#variableb68713a0]][this.data. [[#variableb5713900]]] = [[#variableb6229ca0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b68713a0]]
removedTokensStart 
12[[#b68713a0]]
insertedTokens 
21[[#b68712e0]]
22[[#b68712e0]]
[] 
31[[#b42f7340]]
removedTokensEnd 
32[[#b42f7340]]
insertedTokensPosition 
41[[#b68712a0]]
removedTokenUsed 
42[[#b68712a0]]
insertedTokenUsed 
51[[#b5713900]]
removedTokensPtr 
52[[#b5713900]]
insertedTokensPtr 
61[[#b6229ca0]]
start 
62[[#b6229ca0]]
reverse(tokens)