CloneSet2761


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.955statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17605
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java
27622
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java
Clone Instance
1
Line Count
7
Source Line
605
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java

                for (int i = nextIndex; i < siblings.size(); i++) {
                        TestElement sibling = (TestElement) siblings.get(i);
                        if (sibling.getStatus().isErrorOrFailure()) {
                                if (sibling instanceof TestCaseElement) {
                                        return (TestCaseElement) sibling;
                                }
                                else   {
                                        return getNextChildFailure((TestSuiteElement) sibling, showNext);
                                }
                        }
                }


Clone Instance
2
Line Count
7
Source Line
622
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java

                for (int i = 0; i < children.size(); i++) {
                        TestElement child = (TestElement) children.get(i);
                        if (child.getStatus().isErrorOrFailure()) {
                                if (child instanceof TestCaseElement) {
                                        return (TestCaseElement) child;
                                }
                                else   {
                                        return getNextChildFailure((TestSuiteElement) child, showNext);
                                }
                        }
                }


Clone AbstractionParameter Count: 3Parameter Bindings

for (int i = [[#variable96171b60]]; i <  [[#variable96170160]].size(); i++) {
  TestElement  [[#variable96171ac0]]= (TestElement)  [[#variable96170160]].get(i);
  if ( [[#variable96171ac0]].getStatus().isErrorOrFailure()) {
    if ( [[#variable96171ac0]]instanceof TestCaseElement) {
      return (TestCaseElement)  [[#variable96171ac0]];
    }
    else {
      return getNextChildFailure((TestSuiteElement)  [[#variable96171ac0]], showNext);
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#96171b60]]
nextIndex 
12[[#96171b60]]
0 
21[[#96170160]]
siblings 
22[[#96170160]]
children 
31[[#96171ac0]]
sibling 
32[[#96171ac0]]
child