Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 1 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 2624 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java |
2 | 9 | 269 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.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; } |
| ||||
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; } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#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 |
1 | 2 | [[#bacf91c0]] | private static |