CloneSet2294


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40230.975type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14025
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DynamicValidationRefactoringChange.java
24026
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/RefactoringDescriptorChange.java
Clone Instance
1
Line Count
40
Source Line
25
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DynamicValidationRefactoringChange.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);
        }
}




Clone Instance
2
Line Count
40
Source Line
26
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/RefactoringDescriptorChange.java

/**
 * 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);
        }
}




Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c0343e0]]
RefactoringDescriptorChange 
12[[#9c0343e0]]
DynamicValidationRefactoringChange 
21[[#9c034340]]
CompositeChange 
22[[#9c034340]]
DynamicValidationStateChange 
31[[#9c034300]]
/** The refactoring descriptor */
private 
32[[#9c034300]]
/** The refactoring descriptor */
private final