Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 3 | 3 | 0.966 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 141 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredInitializer.java |
2 | 20 | 228 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java |
3 | 20 | 186 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredType.java |
| ||||
if (localTypes == null) { localTypes = new RecoveredType[5]; localTypeCount = 0; } else { if (localTypeCount == localTypes.length) { System.arraycopy( localTypes, 0, (localTypes = new RecoveredType[2 * localTypeCount]), 0, localTypeCount); } } RecoveredType element = new RecoveredType(typeDeclaration, this, bracketBalanceValue); localTypes[localTypeCount++ ] = element; /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
| ||||
if (localTypes == null) { localTypes = new RecoveredType[5]; localTypeCount = 0; } else { if (localTypeCount == localTypes.length) { System.arraycopy( localTypes, 0, (localTypes = new RecoveredType[2 * localTypeCount]), 0, localTypeCount); } } RecoveredType element = new RecoveredType(typeDeclaration, this, bracketBalanceValue); localTypes[localTypeCount++ ] = element; /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
| ||||
if (memberTypes == null) { memberTypes = new RecoveredType[5]; memberTypeCount = 0; } else { if (memberTypeCount == memberTypes.length) { System.arraycopy( memberTypes, 0, (memberTypes = new RecoveredType[2 * memberTypeCount]), 0, memberTypeCount); } } RecoveredType element = new RecoveredType(memberTypeDeclaration, this, bracketBalanceValue); memberTypes[memberTypeCount++ ] = element; /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
| |||
if ( [[#variableb2ad18e0]]== null) { [[#variableb2ad18e0]]= new RecoveredType[5]; [[#variable632ed680]]= 0; } else { if ( [[#variable632ed680]]== [[#variableb2ad18e0]].length) { System.arraycopy( [[#variableb2ad18e0]], 0, ( [[#variableb2ad18e0]]= new RecoveredType[2 * [[#variable632ed680]]]), 0, [[#variable632ed680]]); } } RecoveredType element = new RecoveredType( [[#variable632ed6a0]], this, bracketBalanceValue); [[#variableb2ad18e0]][ [[#variable632ed680]]++ ] = element; /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2ad18e0]] | localTypes |
1 | 2 | [[#b2ad18e0]] | memberTypes |
1 | 3 | [[#b2ad18e0]] | localTypes |
2 | 1 | [[#632ed680]] | localTypeCount |
2 | 2 | [[#632ed680]] | memberTypeCount |
2 | 3 | [[#632ed680]] | localTypeCount |
3 | 1 | [[#632ed6a0]] | typeDeclaration |
3 | 2 | [[#632ed6a0]] | memberTypeDeclaration |
3 | 3 | [[#632ed6a0]] | typeDeclaration |