CloneSet833


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.998statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114458
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java
214648
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java
Clone Instance
1
Line Count
14
Source Line
458
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java

                final ICompilationUnit unit = sourceRewrite.getCu();
                final ITextFileBuffer buffer = RefactoringFileBuffers.acquire(unit);
                try {
                        final IDocument document = new Document(buffer.getDocument().get());
                        try {
                                rewrite.rewriteAST(document, unit.getJavaProject().getOptions(true)).apply(document, TextEdit.UPDATE_REGIONS);
                                targetRewrite.getListRewrite(targetDeclaration, targetDeclaration.getBodyDeclarationsProperty()).insertFirst(targetRewrite.createStringPlaceholder(normalizeText(document.get(position.getStartPosition(), position.getLength())), ASTNode.FIELD_DECLARATION), null);
                        } catch (MalformedTreeException exception) {
                                JavaPlugin.log(exception);
                          }
                          catch (BadLocationException exception) {
                                JavaPlugin.log(exception);
                          }
                } finally {
                        RefactoringFileBuffers.release(unit);
                  }


Clone Instance
2
Line Count
14
Source Line
648
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java

                final ICompilationUnit unit = sourceRewrite.getCu();
                final ITextFileBuffer buffer = RefactoringFileBuffers.acquire(unit);
                try {
                        final IDocument document = new Document(buffer.getDocument().get());
                        try {
                                rewrite.rewriteAST(document, unit.getJavaProject().getOptions(true)).apply(document, TextEdit.UPDATE_REGIONS);
                                targetRewrite.getListRewrite(targetDeclaration, targetDeclaration.getBodyDeclarationsProperty()).insertFirst(targetRewrite.createStringPlaceholder(normalizeText(document.get(position.getStartPosition(), position.getLength())), ASTNode.METHOD_DECLARATION), null);
                        } catch (MalformedTreeException exception) {
                                JavaPlugin.log(exception);
                          }
                          catch (BadLocationException exception) {
                                JavaPlugin.log(exception);
                          }
                } finally {
                        RefactoringFileBuffers.release(unit);
                  }


Clone AbstractionParameter Count: 1Parameter Bindings

final ICompilationUnit unit = sourceRewrite.getCu();
final ITextFileBuffer buffer = RefactoringFileBuffers.acquire(unit);
try {
  final IDocument document = new Document(buffer.getDocument().get());
  try {
    rewrite.rewriteAST(document, unit.getJavaProject().getOptions(true)).apply(document, TextEdit.UPDATE_REGIONS);
    targetRewrite.getListRewrite(targetDeclaration, targetDeclaration.getBodyDeclarationsProperty()).insertFirst(targetRewrite.createStringPlaceholder(normalizeText(document.get(position.getStartPosition(), position.getLength())), ASTNode. [[#variablebe6f3f00]]), null);
  }
  catch (MalformedTreeException exception) {
    JavaPlugin.log(exception);
  }
  catch (BadLocationException exception) {
    JavaPlugin.log(exception);
  }
}
finally {
  RefactoringFileBuffers.release(unit);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#be6f3f00]]
METHOD_DECLARATION 
12[[#be6f3f00]]
FIELD_DECLARATION