CloneSet2645


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
192624
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java
29269
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java
Clone Instance
1
Line Count
9
Source Line
2624
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java

        /**
         * Returns a compilation unit rewrite for the specified compilation unit.
         * 
         * @param rewrites
         *            the compilation unit rewrite map
         * @param unit
         *            the compilation unit
         * @return the corresponding compilation unit rewrite
         */
        protected CompilationUnitRewrite getCompilationUnitRewrite( final Map rewrites, final ICompilationUnit unit) {
                Assert.isNotNull(rewrites);
                Assert.isNotNull(unit);
                CompilationUnitRewrite rewrite = (CompilationUnitRewrite) rewrites.get(unit);
                if (rewrite == null) {
                        rewrite = new CompilationUnitRewrite(unit);
                        rewrites.put(unit, rewrite);
                }
                return rewrite;
        }


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

        private static CompilationUnitRewrite getCompilationUnitRewrite( final Map rewrites, final ICompilationUnit unit) {
                Assert.isNotNull(rewrites);
                Assert.isNotNull(unit);
                CompilationUnitRewrite rewrite = (CompilationUnitRewrite) rewrites.get(unit);
                if (rewrite == null) {
                        rewrite = new CompilationUnitRewrite(unit);
                        rewrites.put(unit, rewrite);
                }
                return rewrite;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variablebacf91c0]]CompilationUnitRewrite getCompilationUnitRewrite( final Map rewrites, final ICompilationUnit unit) {
  Assert.isNotNull(rewrites);
  Assert.isNotNull(unit);
  CompilationUnitRewrite rewrite = (CompilationUnitRewrite) rewrites.get(unit);
  if (rewrite == null) {
    rewrite = new CompilationUnitRewrite(unit);
    rewrites.put(unit, rewrite);
  }
  return rewrite;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bacf91c0]]
/**
 * Returns a compilation unit rewrite for the specified compilation unit.
 * 
 * @param rewrites
 *            the compilation unit rewrite map
 * @param unit
 *            the compilation unit
 * @return the corresponding compilation unit rewrite
 */
protected 
12[[#bacf91c0]]
private static