CloneSet3387


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.979statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16153
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsCreator.java
26621
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsCreator.java
Clone Instance
1
Line Count
6
Source Line
153
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsCreator.java

                node.setProperty(PROPERTY_CONSTRAINT_VARIABLE, ancestor);
                final ArrayInitializer initializer = node.getInitializer();
                if (initializer != null) {
                        final ConstraintVariable2 descendant = (ConstraintVariable2) initializer.getProperty(PROPERTY_CONSTRAINT_VARIABLE);
                        if (descendant != null)
                                fModel.createSubtypeConstraint(descendant, ancestor);
                }


Clone Instance
2
Line Count
6
Source Line
621
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsCreator.java

                        node.setProperty(PROPERTY_CONSTRAINT_VARIABLE, ancestor);
                        final Expression expression = node.getInitializer();
                        if (expression != null) {
                                final ConstraintVariable2 descendant = (ConstraintVariable2) expression.getProperty(PROPERTY_CONSTRAINT_VARIABLE);
                                if (descendant != null)
                                        fModel.createSubtypeConstraint(descendant, ancestor);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

node.setProperty(PROPERTY_CONSTRAINT_VARIABLE, ancestor);
final [[#variable78a71820]]  [[#variable76c25640]]= node.getInitializer();
if ( [[#variable76c25640]]!= null) {
  final ConstraintVariable2 descendant = (ConstraintVariable2)  [[#variable76c25640]].getProperty(PROPERTY_CONSTRAINT_VARIABLE);
  if (descendant != null)
    fModel.createSubtypeConstraint(descendant, ancestor);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78a71820]]
ArrayInitializer 
12[[#78a71820]]
Expression 
21[[#76c25640]]
initializer 
22[[#76c25640]]
expression