CloneSet2513


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.960block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111426
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMethodPage.java
211719
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java
Clone Instance
1
Line Count
11
Source Line
426
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMethodPage.java

                                                                                                    {
                final ISelection s = event.getSelection();
                if ( !(s instanceof IStructuredSelection))
                        return null;
                final IStructuredSelection ss = (IStructuredSelection) s;
                if (ss.size() != 1)
                        return null;
                final Object first = ss.getFirstElement();
                if ( !(first instanceof ISourceReference))
                        return null;
                return (ISourceReference) first;
                                                                                                    }


Clone Instance
2
Line Count
11
Source Line
719
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java

                                                                                          {
                ISelection s = event.getSelection();
                if ( ! (s instanceof IStructuredSelection))
                        return null;
                IStructuredSelection strSel = (IStructuredSelection) s;
                if (strSel.size() != 1)
                        return null;
                Object first = strSel.getFirstElement();
                if ( ! (first instanceof IJavaElement))
                        return null;
                return (IJavaElement) first;
                                                                                          }


Clone AbstractionParameter Count: 3Parameter Bindings

{
   [[#variablebb79f820]]ISelection s = event.getSelection();
  if ( !(s instanceof IStructuredSelection))
    return null;
   [[#variablebb79f820]]IStructuredSelection  [[#variablebb79f7c0]]= (IStructuredSelection) s;
  if ( [[#variablebb79f7c0]].size() != 1)
    return null;
   [[#variablebb79f820]]Object first = [[#variablebb79f7c0]].getFirstElement();
  if ( !(first instanceof [[#variablebb79f760]]))
    return null;
  return ( [[#variablebb79f760]]) first;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb79f820]]
12[[#bb79f820]]
final 
21[[#bb79f7c0]]
strSel 
22[[#bb79f7c0]]
ss 
31[[#bb79f760]]
IJavaElement 
32[[#bb79f760]]
ISourceReference