CloneSet2298


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.957class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11044
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredField.java
21035
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredLocalVariable.java
Clone Instance
1
Line Count
10
Source Line
44
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredField.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 ;
        }
}


Clone Instance
2
Line Count
10
Source Line
35
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredLocalVariable.java

/*
 * 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 ;
        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/*
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b71349c0]]
stmt 
12[[#b71349c0]]
statement 
21[[#b7134920]]
alreadyCompletedLocalInitialization 
22[[#b7134920]]
alreadyCompletedFieldInitialization 
31[[#b7134880]]
localDeclaration 
32[[#b7134880]]
fieldDeclaration