Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 6 | 0.957 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 62 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveryScanner.java |
2 | 11 | 105 | 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); |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b68713a0]] | removedTokensStart |
1 | 2 | [[#b68713a0]] | insertedTokens |
2 | 1 | [[#b68712e0]] | |
2 | 2 | [[#b68712e0]] | [] |
3 | 1 | [[#b42f7340]] | removedTokensEnd |
3 | 2 | [[#b42f7340]] | insertedTokensPosition |
4 | 1 | [[#b68712a0]] | removedTokenUsed |
4 | 2 | [[#b68712a0]] | insertedTokenUsed |
5 | 1 | [[#b5713900]] | removedTokensPtr |
5 | 2 | [[#b5713900]] | insertedTokensPtr |
6 | 1 | [[#b6229ca0]] | start |
6 | 2 | [[#b6229ca0]] | reverse(tokens) |