CloneSet2148


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14250.966block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114702
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java
214719
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java
Clone Instance
1
Line Count
14
Source Line
702
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java

                       {
                        final SimpleName[] result = new SimpleName[1];
                        ASTVisitor visitor = new ASTVisitor() {
                                 public boolean visit(QualifiedName qualifiedName) {
                                         Name left = qualifiedName.getQualifier();
                                         if (left instanceof SimpleName)
                                                 result[0] = (SimpleName) left;
                                         else
                                                 left.accept(this );
                                         return false;
                                 }
                                             };
                        name.accept(visitor);
                        return result[0];
                       }


Clone Instance
2
Line Count
14
Source Line
719
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java

                                                                           {
                final SimpleType[] result = new SimpleType[1];
                ASTVisitor visitor = new ASTVisitor() {
                         public boolean visit(QualifiedType qualifiedType) {
                                 Type left = qualifiedType.getQualifier();
                                 if (left instanceof SimpleType)
                                         result[0] = (SimpleType) left;
                                 else
                                         left.accept(this );
                                 return false;
                         }
                                     };
                type.accept(visitor);
                return result[0];
                                                                           }


Clone AbstractionParameter Count: 5Parameter Bindings

{
  final [[#variableb3d9f300]][] result = new [[#variableb3d9f300]][1];
  ASTVisitor visitor = new ASTVisitor() {
                         public boolean visit( [[#variableb3d9f260]]  [[#variableb3d9f200]]) {
                            [[#variableb3d21480]] left = [[#variableb3d9f200]].getQualifier();
                           if (left instanceof [[#variableb3d9f300]])
                             result[0] = ( [[#variableb3d9f300]]) left;
                           else
                             left.accept(this );
                           return false;
                         }
                       };
   [[#variableb3d9f1e0]].accept(visitor);
  return result[0];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3d9f300]]
SimpleName 
12[[#b3d9f300]]
SimpleType 
21[[#b3d9f260]]
QualifiedName 
22[[#b3d9f260]]
QualifiedType 
31[[#b3d9f200]]
qualifiedName 
32[[#b3d9f200]]
qualifiedType 
41[[#b3d21480]]
Name 
42[[#b3d21480]]
Type 
51[[#b3d9f1e0]]
name 
52[[#b3d9f1e0]]
type