CloneSet1307


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16250.962class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116469
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java
216490
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java
Clone Instance
1
Line Count
16
Source Line
469
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java

        /**
         * Sorts by VM name.
         */
        private void sortByName() {
                fVMList.setSorter(new ViewerSorter() {
                        public int compare(Viewer viewer, Object e1, Object e2) {
                                if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) {
                                        IVMInstall left = (IVMInstall) e1;
                                        IVMInstall right = (IVMInstall) e2;
                                        return left.getName().compareToIgnoreCase(right.getName());
                                }
                                return super.compare(viewer, e1, e2);
                        }

                        public boolean isSorterProperty(Object element, String property) {
                                return true;
                        }
                                  } );
                fSortColumn = 1;
        }


Clone Instance
2
Line Count
16
Source Line
490
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java

        /**
         * Sorts by VM location.
         */
        private void sortByLocation() {
                fVMList.setSorter(new ViewerSorter() {
                        public int compare(Viewer viewer, Object e1, Object e2) {
                                if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) {
                                        IVMInstall left = (IVMInstall) e1;
                                        IVMInstall right = (IVMInstall) e2;
                                        return left.getInstallLocation().getAbsolutePath().compareToIgnoreCase(right.getInstallLocation().getAbsolutePath());
                                }
                                return super.compare(viewer, e1, e2);
                        }

                        public boolean isSorterProperty(Object element, String property) {
                                return true;
                        }
                                  } );
                fSortColumn = 2;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * Sorts by VM name.
         */
/**
         * Sorts by VM location.
         */
private void [[#variable5822a380]]() {
  fVMList.setSorter(new ViewerSorter() {
                      public int compare(Viewer viewer, Object e1, Object e2) {
                        if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) {
                          IVMInstall left = (IVMInstall) e1;
                          IVMInstall right = (IVMInstall) e2;
                          return [[#variable5822a2c0]]. [[#variable5822a240]]().compareToIgnoreCase( [[#variable5822a1c0]]. [[#variable5822a240]]());
                        }
                        return super.compare(viewer, e1, e2);
                      }

                      public boolean isSorterProperty(Object element, String property) {
                        return true;
                      }
                    } );
  fSortColumn = [[#variable5822a120]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5822a380]]
sortByName 
12[[#5822a380]]
sortByLocation 
21[[#5822a2c0]]
left 
22[[#5822a2c0]]
left.getInstallLocation() 
31[[#5822a240]]
getName 
32[[#5822a240]]
getAbsolutePath 
41[[#5822a1c0]]
right 
42[[#5822a1c0]]
right.getInstallLocation() 
51[[#5822a120]]
1 
52[[#5822a120]]
2