CloneSet2081


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.985statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19113
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaElementPropertyTester.java
2956
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JavaTypeExtender.java
Clone Instance
1
Line Count
9
Source Line
113
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JavaElementPropertyTester.java

        if (element instanceof ICompilationUnit) {
            ICompilationUnit cu = (ICompilationUnit) element;
            type = cu.getType(Signature.getQualifier(cu.getElementName()));
        }
        else   if (element instanceof IClassFile) {
                type = ((IClassFile) element).getType();
               }
               else
               if (element instanceof IType) {
            type = (IType) element;
               }
               else
               if (element instanceof IMember) {
            type = ((IMember) element).getDeclaringType();
               }


Clone Instance
2
Line Count
9
Source Line
56
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JavaTypeExtender.java

                        if (element instanceof ICompilationUnit) {
                                ICompilationUnit cu = (ICompilationUnit) element;
                                testType = cu.getType(Signature.getQualifier(cu.getElementName()));
                        }
                        else   if (element instanceof IClassFile) {
                                        testType = ((IClassFile) element).getType();
                               }
                               else
                               if (element instanceof IType) {
                                testType = (IType) element;
                               }
                               else
                               if (element instanceof IMember) {
                                testType = ((IMember) element).getDeclaringType();
                               }


Clone AbstractionParameter Count: 1Parameter Bindings

if (element instanceof ICompilationUnit) {
  ICompilationUnit cu = (ICompilationUnit) element;
   [[#variable62d0e760]]= cu.getType(Signature.getQualifier(cu.getElementName()));
}
else
  if (element instanceof IClassFile) {
     [[#variable62d0e760]]= ((IClassFile) element).getType();
  }
  else
    if (element instanceof IType) {
       [[#variable62d0e760]]= (IType) element;
    }
    else
      if (element instanceof IMember) {
         [[#variable62d0e760]]= ((IMember) element).getDeclaringType();
      }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62d0e760]]
testType 
12[[#62d0e760]]
type