CloneSet2048


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110249
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
210260
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
Clone Instance
1
Line Count
10
Source Line
249
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java

public int resolveLevel(ASTNode node) {
        int level = IMPOSSIBLE_MATCH;
        for (int i = 0, length = this.patternLocators.length; i < length; i++) {
                int newLevel = this.patternLocators[i].resolveLevel(node);
                if (newLevel > level) {
                        if (newLevel == ACCURATE_MATCH) return ACCURATE_MATCH;
                        level = newLevel; // want to answer the stronger match
                }
        }
        return level;
}


Clone Instance
2
Line Count
10
Source Line
260
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java

public int resolveLevel(Binding binding) {
        int level = IMPOSSIBLE_MATCH;
        for (int i = 0, length = this.patternLocators.length; i < length; i++) {
                int newLevel = this.patternLocators[i].resolveLevel(binding);
                if (newLevel > level) {
                        if (newLevel == ACCURATE_MATCH) return ACCURATE_MATCH;
                        level = newLevel; // want to answer the stronger match
                }
        }
        return level;
}


Clone AbstractionParameter Count: 2Parameter Bindings

public int resolveLevel( [[#variable9df40220]]  [[#variable9df401c0]]) {
  int level = IMPOSSIBLE_MATCH;
  for (int i = 0, length = this.patternLocators.length; i < length; i++) {
    int newLevel = this.patternLocators[i].resolveLevel( [[#variable9df401c0]]);
    if (newLevel > level) {
      if (newLevel == ACCURATE_MATCH)
        return ACCURATE_MATCH;
      level = newLevel; // want to answer the stronger match
    }
  }
  return level;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9df40220]]
ASTNode 
12[[#9df40220]]
Binding 
21[[#9df401c0]]
node 
22[[#9df401c0]]
binding