CloneSet3316


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.959class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110877
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
28357
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
Clone Instance
1
Line Count
10
Source Line
877
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java

    private void updateHistoryEntries() {
        for (int i = fMethodHistory.size() - 1; i >= 0; i--) {
            IMethod method = (IMethod) fMethodHistory.get(i);

            if ( !method.exists()) {
                fMethodHistory.remove(i);
            }
        }

        fHistoryDropDownAction.setEnabled( !fMethodHistory.isEmpty());
    }


Clone Instance
2
Line Count
8
Source Line
357
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java

        private void updateHistoryEntries() {
                for (int i = fInputHistory.size() - 1; i >= 0; i--) {
                        IJavaElement type = (IJavaElement) fInputHistory.get(i);
                        if ( !type.exists()) {
                                fInputHistory.remove(i);
                        }
                }
                fHistoryDropDownAction.setEnabled( !fInputHistory.isEmpty());
        }


Clone AbstractionParameter Count: 3Parameter Bindings

private void updateHistoryEntries() {
  for (int i = [[#variable5a4858e0]].size() - 1; i >= 0; i--) {
     [[#variable5a485880]]  [[#variable5a485820]]= ( [[#variable5a485880]])  [[#variable5a4858e0]].get(i);
    if ( ! [[#variable5a485820]].exists()) {
       [[#variable5a4858e0]].remove(i);
    }
  }
  fHistoryDropDownAction.setEnabled( ! [[#variable5a4858e0]].isEmpty());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a4858e0]]
fInputHistory 
12[[#5a4858e0]]
fMethodHistory 
21[[#5a485880]]
IJavaElement 
22[[#5a485880]]
IMethod 
31[[#5a485820]]
type 
32[[#5a485820]]
method