CloneSet1137


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9310.996statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19227
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
29407
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java
39124
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java
Clone Instance
1
Line Count
9
Source Line
227
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java

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

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

                return false;


Clone Instance
2
Line Count
9
Source Line
407
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java

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

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

                return false;


Clone Instance
3
Line Count
9
Source Line
124
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java

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

                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)) {
  IType type = (IType) selection.getFirstElement();
  return type.getCompilationUnit() != null && !type.isInterface() && !type. [[#variableb77a3a40]]();
}
if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
  return true;
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b77a3a40]]
isLocal 
12[[#b77a3a40]]
isEnum 
13[[#b77a3a40]]
isAnnotation