CloneSet2654


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5210.996statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15538
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java
25579
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java
Clone Instance
1
Line Count
5
Source Line
538
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java

                FieldDeclaration field = (FieldDeclaration) ASTNodes.getParent(fFieldDeclaration, FieldDeclaration.class );
                Type type = field.getType();
                MethodDeclaration result = ast.newMethodDeclaration();
                result.setName(ast.newSimpleName(fSetterName));
                result.modifiers().addAll(ASTNodeFactory.newModifiers(ast, createModifiers()));


Clone Instance
2
Line Count
5
Source Line
579
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java

                FieldDeclaration field = (FieldDeclaration) ASTNodes.getParent(fFieldDeclaration, FieldDeclaration.class );
                Type type = field.getType();
                MethodDeclaration result = ast.newMethodDeclaration();
                result.setName(ast.newSimpleName(fGetterName));
                result.modifiers().addAll(ASTNodeFactory.newModifiers(ast, createModifiers()));


Clone AbstractionParameter Count: 1Parameter Bindings

FieldDeclaration field = (FieldDeclaration) ASTNodes.getParent(fFieldDeclaration, FieldDeclaration.class );
Type type = field.getType();
MethodDeclaration result = ast.newMethodDeclaration();
result.setName(ast.newSimpleName( [[#variable9d6d2880]]));
result.modifiers().addAll(ASTNodeFactory.newModifiers(ast, createModifiers()));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d6d2880]]
fSetterName 
12[[#9d6d2880]]
fGetterName