CloneSet579


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12189
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringElementFilterDescriptor.java
221251
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/FilterDescriptor.java
Clone Instance
1
Line Count
21
Source Line
89
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringElementFilterDescriptor.java

        private static RefactoringElementFilterDescriptor[] createFilterDescriptors(IConfigurationElement[] elements) {
                List result = new ArrayList(5);
                Set descIds = new HashSet(5);
                for (int i = 0; i < elements.length; i++) {
                        final IConfigurationElement element = elements[i];
                        if (FILTER_TAG.equals(element.getName())) {

                                final RefactoringElementFilterDescriptor[] desc = new RefactoringElementFilterDescriptor[1];
                                SafeRunner.run(new SafeRunnable(RefactoringCoreMessages.RefactoringElementFilterDescriptor_filterDescriptionCreationError_message) {
                                        public void run() throws Exception {
                                                desc[0] = new RefactoringElementFilterDescriptor(element);
                                        }
                                               } );

                                if (desc[0] != null && !descIds.contains(desc[0].getId())) {
                                        result.add(desc[0]);
                                        descIds.add(desc[0].getId());
                                }
                        }
                }
                return (RefactoringElementFilterDescriptor[]) result.toArray(new RefactoringElementFilterDescriptor[result.size()]);
        }


Clone Instance
2
Line Count
21
Source Line
251
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/FilterDescriptor.java

        //---- initialization ---------------------------------------------------
        /**
         * Creates the filter descriptors.
         */
        private static FilterDescriptor[] createFilterDescriptors(IConfigurationElement[] elements) {
                List result = new ArrayList(5);
                Set descIds = new HashSet(5);
                for (int i = 0; i < elements.length; i++) {
                        final IConfigurationElement element = elements[i];
                        if (FILTER_TAG.equals(element.getName())) {

                                final FilterDescriptor[] desc = new FilterDescriptor[1];
                                SafeRunner.run(new SafeRunnable(FilterMessages.FilterDescriptor_filterDescriptionCreationError_message) {
                                        public void run() throws Exception {
                                                desc[0] = new FilterDescriptor(element);
                                        }
                                               } );

                                if (desc[0] != null && !descIds.contains(desc[0].getId())) {
                                        result.add(desc[0]);
                                        descIds.add(desc[0].getId());
                                }
                        }
                }
                return (FilterDescriptor[]) result.toArray(new FilterDescriptor[result.size()]);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

//---- initialization ---------------------------------------------------
/**
         * Creates the filter descriptors.
         */
private static [[#variableb8b3e600]][] createFilterDescriptors(IConfigurationElement[] elements) {
  List result = new ArrayList(5);
  Set descIds = new HashSet(5);
  for (int i = 0; i < elements.length; i++) {
    final IConfigurationElement element = elements[i];
    if (FILTER_TAG.equals(element.getName())) {
      final [[#variableb8b3e600]][] desc = new [[#variableb8b3e600]][1];
      SafeRunner.run(new SafeRunnable( [[#variableb8b3e6c0]]. [[#variableb8b3e660]]) {
                       public void run() throws Exception {
                         desc[0] = new [[#variableb8b3e600]](element);
                       }
                     } );
      if (desc[0] != null && !descIds.contains(desc[0].getId())) {
        result.add(desc[0]);
        descIds.add(desc[0].getId());
      }
    }
  }
  return ( [[#variableb8b3e600]][]) result.toArray(new [[#variableb8b3e600]][result.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8b3e600]]
FilterDescriptor 
12[[#b8b3e600]]
RefactoringElementFilterDescriptor 
21[[#b8b3e6c0]]
FilterMessages 
22[[#b8b3e6c0]]
RefactoringCoreMessages 
31[[#b8b3e660]]
FilterDescriptor_filterDescriptionCreationError_message 
32[[#b8b3e660]]
RefactoringElementFilterDescriptor_filterDescriptionCreationError_message