CloneSet1012


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.974class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1142914
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2143020
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
14
Source Line
2914
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        protected VariableDeclarationExpression convertToVariableDeclarationExpression(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) {
                final VariableDeclarationFragment variableDeclarationFragment = convertToVariableDeclarationFragment(localDeclaration);
                final VariableDeclarationExpression variableDeclarationExpression = new VariableDeclarationExpression(this.ast);
                variableDeclarationExpression.fragments().add(variableDeclarationFragment);
                if (this.resolveBindings) {
                        recordNodes(variableDeclarationFragment, localDeclaration);
                }
                variableDeclarationExpression.setSourceRange(localDeclaration.declarationSourceStart, localDeclaration.declarationSourceEnd - localDeclaration.declarationSourceStart + 1);
                Type type = convertType(localDeclaration.type);
                setTypeForVariableDeclarationExpression(variableDeclarationExpression, type, variableDeclarationFragment.getExtraDimensions());
                if (localDeclaration.modifiersSourceStart != -1) {
                        setModifiers(variableDeclarationExpression, localDeclaration);
                }
                return variableDeclarationExpression;
        }


Clone Instance
2
Line Count
14
Source Line
3020
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        protected VariableDeclarationStatement convertToVariableDeclarationStatement(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) {
                final VariableDeclarationFragment variableDeclarationFragment = convertToVariableDeclarationFragment(localDeclaration);
                final VariableDeclarationStatement variableDeclarationStatement = new VariableDeclarationStatement(this.ast);
                variableDeclarationStatement.fragments().add(variableDeclarationFragment);
                if (this.resolveBindings) {
                        recordNodes(variableDeclarationFragment, localDeclaration);
                }
                variableDeclarationStatement.setSourceRange(localDeclaration.declarationSourceStart, localDeclaration.declarationSourceEnd - localDeclaration.declarationSourceStart + 1);
                Type type = convertType(localDeclaration.type);
                setTypeForVariableDeclarationStatement(variableDeclarationStatement, type, variableDeclarationFragment.getExtraDimensions());
                if (localDeclaration.modifiersSourceStart != -1) {
                        setModifiers(variableDeclarationStatement, localDeclaration);
                }
                return variableDeclarationStatement;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

protected [[#variableb8f27380]]  [[#variableb8f272a0]](org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) {
  final VariableDeclarationFragment variableDeclarationFragment = convertToVariableDeclarationFragment(localDeclaration);
  final [[#variableb8f27380]]  [[#variableb9c4fea0]]= new [[#variableb8f27380]](this.ast);
   [[#variableb9c4fea0]].fragments().add(variableDeclarationFragment);
  if (this.resolveBindings) {
    recordNodes(variableDeclarationFragment, localDeclaration);
  }
   [[#variableb9c4fea0]].setSourceRange(localDeclaration.declarationSourceStart, localDeclaration.declarationSourceEnd - localDeclaration.declarationSourceStart + 1);
  Type type = convertType(localDeclaration.type);
   [[#variableb8f273e0]]( [[#variableb9c4fea0]], type, variableDeclarationFragment.getExtraDimensions());
  if (localDeclaration.modifiersSourceStart != -1) {
    setModifiers( [[#variableb9c4fea0]], localDeclaration);
  }
  return [[#variableb9c4fea0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8f27380]]
VariableDeclarationExpression 
12[[#b8f27380]]
VariableDeclarationStatement 
21[[#b8f272a0]]
convertToVariableDeclarationExpression 
22[[#b8f272a0]]
convertToVariableDeclarationStatement 
31[[#b9c4fea0]]
variableDeclarationExpression 
32[[#b9c4fea0]]
variableDeclarationStatement 
41[[#b8f273e0]]
setTypeForVariableDeclarationExpression 
42[[#b8f273e0]]
setTypeForVariableDeclarationStatement