CloneSet2361


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.994statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19377
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
27111
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java
Clone Instance
1
Line Count
9
Source Line
377
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java

                if ((selection.size() == 1) && (selection.getFirstElement() instanceof IType)) {
                        IType type = (IType) selection.getFirstElement();
                        return type.getCompilationUnit() != null && !type.isInterface();
                }

                if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
                        return true;

                return false;


Clone Instance
2
Line Count
7
Source Line
111
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java

                if ((selection.size() == 1) && (selection.getFirstElement() instanceof IType)) {
                        final IType type = (IType) selection.getFirstElement();
                        return type.getCompilationUnit() != null && !type.isInterface();
                }
                if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
                        return true;
                return false;


Clone AbstractionParameter Count: 1Parameter Bindings

if ((selection.size() == 1) && (selection.getFirstElement() instanceof IType)) {
   [[#variablea70a3460]]IType type = (IType) selection.getFirstElement();
  return type.getCompilationUnit() != null && !type.isInterface();
}
if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
  return true;
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a70a3460]]
12[[#a70a3460]]
final