CloneSet1789


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.978statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15943
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
25582
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java
Clone Instance
1
Line Count
5
Source Line
943
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java

                        String content = document.get(position.getStartPosition(), position.getLength());
                        final String[] lines = Strings.convertIntoLines(content);
                        Strings.trimIndentation(lines, method.getJavaProject(), false);
                        content = Strings.concatenate(lines, StubUtility.getLineDelimiterUsed(method));
                        newMethod.setBody((Block) targetRewrite.getASTRewrite().createStringPlaceholder(content, ASTNode.BLOCK));


Clone Instance
2
Line Count
5
Source Line
582
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java

                        String content = document.get(position.getStartPosition(), position.getLength());
                        String[] lines = Strings.convertIntoLines(content);
                        Strings.trimIndentation(lines, method.getJavaProject(), false);
                        content = Strings.concatenate(lines, StubUtility.getLineDelimiterUsed(method));
                        newMethod.setBody((Block) targetRewrite.createStringPlaceholder(content, ASTNode.BLOCK));


Clone AbstractionParameter Count: 2Parameter Bindings

String content = document.get(position.getStartPosition(), position.getLength());
 [[#variable578e0b40]]String[] lines = Strings.convertIntoLines(content);
Strings.trimIndentation(lines, method.getJavaProject(), false);
content = Strings.concatenate(lines, StubUtility.getLineDelimiterUsed(method));
newMethod.setBody((Block)  [[#variable5a59f280]].createStringPlaceholder(content, ASTNode.BLOCK));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#578e0b40]]
12[[#578e0b40]]
final 
21[[#5a59f280]]
targetRewrite 
22[[#5a59f280]]
targetRewrite.getASTRewrite()