CloneSet1013


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16230.974class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116759
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java
216467
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java
Clone Instance
1
Line Count
16
Source Line
759
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java

        private int getInitialSelectionIndexForEditDialog( final Map stringMapping, final String[] keys) {
                final int commonActionCode = getCommonActionCodeForSelectedInfos();
                if (commonActionCode == -1)
                        return 0;
                for ( final Iterator iter = stringMapping.keySet().iterator(); iter.hasNext();) {
                        final String key = (String) iter.next();
                        final int action = ((Integer) stringMapping.get(key)).intValue();
                        if (commonActionCode == action) {
                                for (int i = 0; i < keys.length; i++) {
                                        if (key.equals(keys[i]))
                                                return i;
                                }
                                Assert.isTrue(false);
                        }
                }
                return 0;
        }


Clone Instance
2
Line Count
16
Source Line
467
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java

                private int getInitialSelectionIndexForEditDialog( final Map mapping, final String[] keys) {
                        final int commonActionCode = getCommonActionCodeForSelectedInfos();
                        if (commonActionCode == -1)
                                return 0;
                        for ( final Iterator iterator = mapping.keySet().iterator(); iterator.hasNext();) {
                                final String key = (String) iterator.next();
                                final int action = ((Integer) mapping.get(key)).intValue();
                                if (commonActionCode == action) {
                                        for (int index = 0; index < keys.length; index++) {
                                                if (key.equals(keys[index]))
                                                        return index;
                                        }
                                        Assert.isTrue(false); // there's no way
                                }
                        }
                        return 0;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

private int getInitialSelectionIndexForEditDialog( final Map  [[#variable592d64a0]], final String[] keys) {
  final int commonActionCode = getCommonActionCodeForSelectedInfos();
  if (commonActionCode == -1)
    return 0;
  for ( final Iterator  [[#variable592d6440]]= [[#variable592d64a0]].keySet().iterator(); [[#variable592d6440]].hasNext();) {
    final String key = (String)  [[#variable592d6440]].next();
    final int action = ((Integer)  [[#variable592d64a0]].get(key)).intValue();
    if (commonActionCode == action) {
      for (int  [[#variable592d63c0]]= 0; [[#variable592d63c0]] < keys.length; [[#variable592d63c0]]++) {
        if (key.equals(keys[ [[#variable592d63c0]]]))
          return [[#variable592d63c0]];
      }
      Assert.isTrue(false); // there's no way
    }
  }
  return 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#592d64a0]]
mapping 
12[[#592d64a0]]
stringMapping 
21[[#592d6440]]
iterator 
22[[#592d6440]]
iter 
31[[#592d63c0]]
index 
32[[#592d63c0]]
i