CloneSet2046


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1124746
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
2124759
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
12
Source Line
4746
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

protected void consumeRecoveryMethodHeaderName() {
        // this method is call only inside recovery
        boolean isAnnotationMethod = false;
        if (this.currentElement instanceof RecoveredType) {
                isAnnotationMethod = (((RecoveredType) this.currentElement).typeDeclaration.modifiers& ClassFileConstants.AccAnnotation) != 0;
        }
        else   {
                RecoveredType recoveredType = this.currentElement.enclosingType();
                if (recoveredType != null) {
                        isAnnotationMethod = (recoveredType.typeDeclaration.modifiers&  ClassFileConstants.AccAnnotation) != 0;
                }
        }
        this.consumeMethodHeaderName(isAnnotationMethod);
}


Clone Instance
2
Line Count
12
Source Line
4759
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

protected void consumeRecoveryMethodHeaderNameWithTypeParameters() {
        // this method is call only inside recovery
        boolean isAnnotationMethod = false;
        if (this.currentElement instanceof RecoveredType) {
                isAnnotationMethod = (((RecoveredType) this.currentElement).typeDeclaration.modifiers& ClassFileConstants.AccAnnotation) != 0;
        }
        else   {
                RecoveredType recoveredType = this.currentElement.enclosingType();
                if (recoveredType != null) {
                        isAnnotationMethod = (recoveredType.typeDeclaration.modifiers&  ClassFileConstants.AccAnnotation) != 0;
                }
        }
        this.consumeMethodHeaderNameWithTypeParameters(isAnnotationMethod);
}


Clone AbstractionParameter Count: 2Parameter Bindings

protected void [[#variableb5298080]]() {
  // this method is call only inside recovery
  boolean isAnnotationMethod = false;
  if (this.currentElement instanceof RecoveredType) {
    isAnnotationMethod = (((RecoveredType) this.currentElement).typeDeclaration.modifiers&ClassFileConstants.AccAnnotation) != 0;
  }
  else {
    RecoveredType recoveredType = this.currentElement.enclosingType();
    if (recoveredType != null) {
      isAnnotationMethod = (recoveredType.typeDeclaration.modifiers&ClassFileConstants.AccAnnotation) != 0;
    }
  }
  this. [[#variableb5298000]](isAnnotationMethod);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5298080]]
consumeRecoveryMethodHeaderName 
12[[#b5298080]]
consumeRecoveryMethodHeaderNameWithTypeParameters 
21[[#b5298000]]
consumeMethodHeaderName 
22[[#b5298000]]
consumeMethodHeaderNameWithTypeParameters