Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.960 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 426 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMethodPage.java |
2 | 11 | 719 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.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; } |
| ||||
{ 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; } |
| |||
{ [[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb79f820]] | |
1 | 2 | [[#bb79f820]] | final |
2 | 1 | [[#bb79f7c0]] | strSel |
2 | 2 | [[#bb79f7c0]] | ss |
3 | 1 | [[#bb79f760]] | IJavaElement |
3 | 2 | [[#bb79f760]] | ISourceReference |