CloneSet1848


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.980statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114216
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2141435
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
Clone Instance
1
Line Count
14
Source Line
216
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                        int position = Integer.MAX_VALUE;
                        int nextDeclarationType = -1;
                        if (fieldsIndex < fieldsLength) {
                                nextFieldDeclaration = fields[fieldsIndex];
                                if (nextFieldDeclaration.declarationSourceStart < position) {
                                        position = nextFieldDeclaration.declarationSourceStart;
                                        nextDeclarationType = 0; // FIELD
                                }
                        }
                        if (methodsIndex < methodsLength) {
                                nextMethodDeclaration = methods[methodsIndex];
                                if (nextMethodDeclaration.declarationSourceStart < position) {
                                        position = nextMethodDeclaration.declarationSourceStart;
                                        nextDeclarationType = 1; // METHOD
                                }
                        }


Clone Instance
2
Line Count
14
Source Line
1435
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

                int position = Integer.MAX_VALUE;
                int nextDeclarationType = -1;
                if (fieldIndex < fieldCounter) {
                        nextFieldDeclaration = fields[fieldIndex];
                        if (nextFieldDeclaration.declarationSourceStart < position) {
                                position = nextFieldDeclaration.declarationSourceStart;
                                nextDeclarationType = 0; // FIELD
                        }
                }
                if (methodIndex < methodCounter) {
                        nextMethodDeclaration = methods[methodIndex];
                        if (nextMethodDeclaration.declarationSourceStart < position) {
                                position = nextMethodDeclaration.declarationSourceStart;
                                nextDeclarationType = 1; // METHOD
                        }
                }


Clone AbstractionParameter Count: 4Parameter Bindings

int position = Integer.MAX_VALUE;
int nextDeclarationType = -1;
if ( [[#variableb367aa80]] <  [[#variable4f08b320]]) {
  nextFieldDeclaration = fields[ [[#variableb367aa80]]];
  if (nextFieldDeclaration.declarationSourceStart < position) {
    position = nextFieldDeclaration.declarationSourceStart;
    nextDeclarationType = 0; // FIELD
  }
}
if ( [[#variablebe453d40]] <  [[#variablebcfb8340]]) {
  nextMethodDeclaration = methods[ [[#variablebe453d40]]];
  if (nextMethodDeclaration.declarationSourceStart < position) {
    position = nextMethodDeclaration.declarationSourceStart;
    nextDeclarationType = 1; // METHOD
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b367aa80]]
fieldsIndex 
12[[#b367aa80]]
fieldIndex 
21[[#4f08b320]]
fieldsLength 
22[[#4f08b320]]
fieldCounter 
31[[#be453d40]]
methodsIndex 
32[[#be453d40]]
methodIndex 
41[[#bcfb8340]]
methodsLength 
42[[#bcfb8340]]
methodCounter