CloneSet2343


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.962class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11647
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompositeOrTypeConstraint.java
21368
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompositeOrTypeConstraint.java
Clone Instance
1
Line Count
16
Source Line
47
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompositeOrTypeConstraint.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.experiments.ITypeConstraint#toResolvedString()
         */
        public String toResolvedString() {
                StringBuffer buff = new StringBuffer();
                for (int i = 0; i < fConstraints.length; i++) {
                        ITypeConstraint constraint = fConstraints[i];
                        if (i > 0)
                                buff.append(" or ");                     //$NON-NLS-1$
                        buff.append(constraint.toResolvedString());
                }
                return buff.toString();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.experiments.ITypeConstraint#isSimpleTypeConstraint()
         */
        public boolean isSimpleTypeConstraint() {
                return false;
        }


Clone Instance
2
Line Count
13
Source Line
68
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompositeOrTypeConstraint.java

        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        public String toString() {
                StringBuffer buff = new StringBuffer();
                for (int i = 0; i < fConstraints.length; i++) {
                        ITypeConstraint constraint = fConstraints[i];
                        if (i > 0)
                                buff.append(" or ");                     //$NON-NLS-1$
                        buff.append(constraint.toString());
                }
                return buff.toString();
        }

        public ITypeConstraint[] getConstraints() {
                return fConstraints;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.experiments.ITypeConstraint#toResolvedString()
         */
public String  [[#variable78a6e960]]() {
  StringBuffer buff = new StringBuffer();
  for (int i = 0; i < fConstraints.length; i++) {
    ITypeConstraint constraint = fConstraints[i];
    if (i > 0)
      buff.append(" or "); //$NON-NLS-1$
    buff.append(constraint. [[#variable78a6e960]]());
  }
  return buff.toString();
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.experiments.ITypeConstraint#isSimpleTypeConstraint()
         */
public [[#variable78a6e900]]  [[#variable78a6e8e0]]() {
  return [[#variable78a6e860]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78a6e960]]
toString 
12[[#78a6e960]]
toResolvedString 
21[[#78a6e900]]
ITypeConstraint[] 
22[[#78a6e900]]
boolean 
31[[#78a6e8e0]]
getConstraints 
32[[#78a6e8e0]]
isSimpleTypeConstraint 
41[[#78a6e860]]
fConstraints 
42[[#78a6e860]]
false