CloneSet824


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9320.991statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19187
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
29217
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
39232
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
Clone Instance
1
Line Count
9
Source Line
187
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java

        // Look for closest pattern
        PatternLocator closestPattern = null;
        int level = IMPOSSIBLE_MATCH;
        for (int i = 0, length = this.patternLocators.length; i < length; i++) {
                PatternLocator patternLocator = this.patternLocators[i];
                int newLevel = patternLocator.referenceType() == 0 ? IMPOSSIBLE_MATCH:  patternLocator.resolveLevel(refBinding);
                if (newLevel > level) {
                        closestPattern = patternLocator;
                        if (newLevel == ACCURATE_MATCH) break;
                        level = newLevel;
                }
        }


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

        PatternLocator closestPattern = null;
        int level = IMPOSSIBLE_MATCH;
        for (int i = 0, length = this.patternLocators.length; i < length; i++) {
                PatternLocator patternLocator = this.patternLocators[i];
                int newLevel = patternLocator.referenceType() == 0 ? IMPOSSIBLE_MATCH:  patternLocator.resolveLevel(reference);
                if (newLevel > level) {
                        closestPattern = patternLocator;
                        if (newLevel == ACCURATE_MATCH) break;
                        level = newLevel;
                }
        }


Clone Instance
3
Line Count
9
Source Line
232
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java

        PatternLocator closestPattern = null;
        int level = IMPOSSIBLE_MATCH;
        for (int i = 0, pl = this.patternLocators.length; i < pl; i++) {
                PatternLocator patternLocator = this.patternLocators[i];
                int newLevel = patternLocator.referenceType() == 0 ? IMPOSSIBLE_MATCH:  patternLocator.resolveLevel(reference);
                if (newLevel > level) {
                        closestPattern = patternLocator;
                        if (newLevel == ACCURATE_MATCH) break;
                        level = newLevel;
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

// Look for closest pattern
PatternLocator closestPattern = null;
int level = IMPOSSIBLE_MATCH;
for (int i = 0, [[#variableb5fe9ca0]]= this.patternLocators.length; i <  [[#variableb5fe9ca0]]; i++) {
  PatternLocator patternLocator = this.patternLocators[i];
  int newLevel = patternLocator.referenceType() == 0 ? IMPOSSIBLE_MATCH: patternLocator.resolveLevel( [[#variablebd6eea80]]);
  if (newLevel > level) {
    closestPattern = patternLocator;
    if (newLevel == ACCURATE_MATCH)
      break;
    level = newLevel;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5fe9ca0]]
pl 
12[[#b5fe9ca0]]
length 
13[[#b5fe9ca0]]
length 
21[[#bd6eea80]]
reference 
22[[#bd6eea80]]
reference 
23[[#bd6eea80]]
refBinding