Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.957 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 44 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredField.java |
2 | 10 | 35 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredLocalVariable.java |
| ||||
/* * Record an expression statement if field is expecting an initialization expression, * used for completion inside field initializers. */ public RecoveredElement add(Statement statement, int bracketBalanceValue) { if (this.alreadyCompletedFieldInitialization || !(statement instanceof Expression)) { return super.add(statement, bracketBalanceValue); } else { this.alreadyCompletedFieldInitialization = true; this.fieldDeclaration.initialization = (Expression) statement; this.fieldDeclaration.declarationSourceEnd = statement.sourceEnd; this.fieldDeclaration.declarationEnd = statement.sourceEnd; return this ; } } |
| ||||
/* * Record an expression statement if local variable is expecting an initialization expression. */ public RecoveredElement add(Statement stmt, int bracketBalanceValue) { if (this.alreadyCompletedLocalInitialization || !(stmt instanceof Expression)) { return super.add(stmt, bracketBalanceValue); } else { this.alreadyCompletedLocalInitialization = true; this.localDeclaration.initialization = (Expression) stmt; this.localDeclaration.declarationSourceEnd = stmt.sourceEnd; this.localDeclaration.declarationEnd = stmt.sourceEnd; return this ; } } |
| |||
/* * Record an expression statement if local variable is expecting an initialization expression. */ /* * Record an expression statement if field is expecting an initialization expression, * used for completion inside field initializers. */ public RecoveredElement add(Statement [[#variableb71349c0]], int bracketBalanceValue) { if (this. [[#variableb7134920]]|| !( [[#variableb71349c0]]instanceof Expression)) { return super.add( [[#variableb71349c0]], bracketBalanceValue); } else { this. [[#variableb7134920]]= true; this. [[#variableb7134880]].initialization = (Expression) [[#variableb71349c0]]; this. [[#variableb7134880]].declarationSourceEnd = [[#variableb71349c0]].sourceEnd; this. [[#variableb7134880]].declarationEnd = [[#variableb71349c0]].sourceEnd; return this ; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b71349c0]] | stmt |
1 | 2 | [[#b71349c0]] | statement |
2 | 1 | [[#b7134920]] | alreadyCompletedLocalInitialization |
2 | 2 | [[#b7134920]] | alreadyCompletedFieldInitialization |
3 | 1 | [[#b7134880]] | localDeclaration |
3 | 2 | [[#b7134880]] | fieldDeclaration |