Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
40 | 2 | 3 | 0.975 | type_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 40 | 25 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DynamicValidationRefactoringChange.java |
2 | 40 | 26 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/RefactoringDescriptorChange.java |
| ||||
/** * Dynamic validation state change with support for refactoring descriptors. * * @since 3.2 */ public final class DynamicValidationRefactoringChange extends DynamicValidationStateChange { /** The refactoring descriptor */ private final RefactoringDescriptor fDescriptor; /** * Creates a new dynamic validation refactoring change. * * @param descriptor * the refactoring descriptor * @param name * the name of the change */ public DynamicValidationRefactoringChange( final RefactoringDescriptor descriptor, final String name) { super(name); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * Creates a new dynamic validation refactoring change. * * @param descriptor * the refactoring descriptor * @param name * the name of the change * @param changes * the changes */ public DynamicValidationRefactoringChange( final RefactoringDescriptor descriptor, final String name, final Change[] changes) { super(name, changes); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * {@inheritDoc} */ public ChangeDescriptor getDescriptor() { return new RefactoringChangeDescriptor(fDescriptor); } } |
| ||||
/** * Composite change with an associated refactoring descriptor. * * @since 3.2 */ public final class RefactoringDescriptorChange extends CompositeChange { /** The refactoring descriptor */ private RefactoringDescriptor fDescriptor; /** * Creates a new refactoring descriptor change. * * @param descriptor * the refactoring descriptor * @param name * the name */ public RefactoringDescriptorChange( final RefactoringDescriptor descriptor, final String name) { super(name); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * Creates a new refactoring descriptor change. * * @param descriptor * the refactoring descriptor * @param name * the name * @param changes * the changes */ public RefactoringDescriptorChange( final RefactoringDescriptor descriptor, final String name, final Change[] changes) { super(name, changes); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * {@inheritDoc} */ public ChangeDescriptor getDescriptor() { return new RefactoringChangeDescriptor(fDescriptor); } } |
| |||
/** * Composite change with an associated refactoring descriptor. * * @since 3.2 */ /** * Dynamic validation state change with support for refactoring descriptors. * * @since 3.2 */ public final class [[#variable9c0343e0]]extends [[#variable9c034340]]{ [[#variable9c034300]]RefactoringDescriptor fDescriptor; /** * Creates a new refactoring descriptor change. * * @param descriptor * the refactoring descriptor * @param name * the name */ /** * Creates a new dynamic validation refactoring change. * * @param descriptor * the refactoring descriptor * @param name * the name of the change */ public [[#variable9c0343e0]]( final RefactoringDescriptor descriptor, final String name) { super(name); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * Creates a new refactoring descriptor change. * * @param descriptor * the refactoring descriptor * @param name * the name * @param changes * the changes */ /** * Creates a new dynamic validation refactoring change. * * @param descriptor * the refactoring descriptor * @param name * the name of the change * @param changes * the changes */ public [[#variable9c0343e0]]( final RefactoringDescriptor descriptor, final String name, final Change[] changes) { super(name, changes); Assert.isNotNull(descriptor); fDescriptor = descriptor; } /** * {@inheritDoc} */ public ChangeDescriptor getDescriptor() { return new RefactoringChangeDescriptor(fDescriptor); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9c0343e0]] | RefactoringDescriptorChange |
1 | 2 | [[#9c0343e0]] | DynamicValidationRefactoringChange |
2 | 1 | [[#9c034340]] | CompositeChange |
2 | 2 | [[#9c034340]] | DynamicValidationStateChange |
3 | 1 | [[#9c034300]] | /** The refactoring descriptor */ private |
3 | 2 | [[#9c034300]] | /** The refactoring descriptor */ private final |