CloneSet3354


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.985statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11363
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java
213105
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java
Clone Instance
1
Line Count
13
Source Line
63
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java

        /* default behavior is to delegate recording to parent if any,
        do not consider elements passed the known end (if set)
        it must be belonging to an enclosing element 
        */
        if (methodDeclaration.declarationSourceEnd > 0 &&
                   nestedBlockDeclaration.sourceStart > 
                          methodDeclaration.declarationSourceEnd) {
                                if (this.parent == null) {
                                        return this ; // ignore
                                }
                                else   {
                                        return this.parent.add(nestedBlockDeclaration, bracketBalanceValue);
                                }
        }
        /* consider that if the opening brace was not found, it is there */
        if ( !foundOpeningBrace) {
                foundOpeningBrace = true;
                this.bracketBalance++;
        }


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

        /* default behavior is to delegate recording to parent if any,
        do not consider elements passed the known end (if set)
        it must be belonging to an enclosing element 
        */
        if (methodDeclaration.declarationSourceEnd > 0 &&
                   fieldDeclaration.declarationSourceStart > 
                          methodDeclaration.declarationSourceEnd) {
                if (this.parent == null) {
                        return this ; // ignore
                }
                else   {
                        return this.parent.add(fieldDeclaration, bracketBalanceValue);
                }
        }
        /* consider that if the opening brace was not found, it is there */
        if ( !foundOpeningBrace) {
                foundOpeningBrace = true;
                this.bracketBalance++;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/* default behavior is to delegate recording to parent if any,
        do not consider elements passed the known end (if set)
        it must be belonging to an enclosing element 
        */
if (methodDeclaration.declarationSourceEnd > 0 && [[#variable4e8063e0]]. [[#variable4e806400]] > methodDeclaration.declarationSourceEnd) {
  if (this.parent == null) {
    return this ; // ignore
  }
  else {
    return this.parent.add( [[#variable4e8063e0]], bracketBalanceValue);
  }
}
/* consider that if the opening brace was not found, it is there */
if ( !foundOpeningBrace) {
  foundOpeningBrace = true;
  this.bracketBalance++;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4e8063e0]]
fieldDeclaration 
12[[#4e8063e0]]
nestedBlockDeclaration 
21[[#4e806400]]
declarationSourceStart 
22[[#4e806400]]
sourceStart