CloneSet3520


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131276
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
213437
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java
Clone Instance
1
Line Count
13
Source Line
1276
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java

                // Use primary type if possible
                IType primaryType = cu.findPrimaryType();
                if (primaryType != null)
                        return primaryType;

                // Use first top-level type
                try {
                        IType[] types = cu.getTypes();
                        if (types.length > 0)
                                return types[0];
                        else
                                return null;
                } catch (JavaModelException ex) {
                        return null;
                  }


Clone Instance
2
Line Count
13
Source Line
437
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java

                // Use primary type if possible
                IType primaryType = cu.findPrimaryType();
                if (primaryType != null)
                        return primaryType;

                // Use first top-level type
                try {
                        IType[] types = cu.getTypes();
                        if (types.length > 0)
                                return types[0];
                        else
                                return null;
                } catch (JavaModelException ex) {
                        return null;
                  }


Clone AbstractionParameter Count: 0Parameter Bindings

// Use primary type if possible
IType primaryType = cu.findPrimaryType();
if (primaryType != null)
  return primaryType;
// Use first top-level type
try {
  IType[] types = cu.getTypes();
  if (types.length > 0)
    return types[0];
  else
    return null;
}
catch (JavaModelException ex) {
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None