CloneSet1179


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16230.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116102
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointFieldLocator.java
216166
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointMethodLocator.java
Clone Instance
1
Line Count
16
Source Line
102
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointFieldLocator.java

        /**
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration)
         */
        public boolean visit(TypeDeclaration node) {
                if (containsPosition(node)) {
                        // visit the field declarations
                        FieldDeclaration[] fields = node.getFields();
                        for (int i = 0, length = fields.length; i < length && !fFound; i++) {
                                fields[i].accept(this );
                        }
                        if ( !fFound) {
                                // visit inner types
                                TypeDeclaration[] types = node.getTypes();
                                for (int i = 0, length = types.length; i < length && !fFound; i++) {
                                        types[i].accept(this );
                                }
                        }
                }
                return false;
        }


Clone Instance
2
Line Count
16
Source Line
166
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointMethodLocator.java

        /**
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration)
         */
        public boolean visit(TypeDeclaration node) {
                if (containsPosition(node)) {
                        // visit the methode declarations
                        MethodDeclaration[] methods = node.getMethods();
                        for (int i = 0, length = methods.length; i < length && !fFound; i++) {
                                methods[i].accept(this );
                        }
                        if ( !fFound) {
                                // visit inner types
                                TypeDeclaration[] types = node.getTypes();
                                for (int i = 0, length = types.length; i < length && !fFound; i++) {
                                        types[i].accept(this );
                                }
                        }
                }
                return false;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration)
         */
public boolean visit(TypeDeclaration node) {
  if (containsPosition(node)) {
     [[#variable60b856e0]][]  [[#variable60b85680]]= node. [[#variable60b855c0]]();
    for (int i = 0, length = [[#variable60b85680]].length; i < length && !fFound; i++) {
       [[#variable60b85680]][i].accept(this );
    }
    if ( !fFound) {
      // visit inner types
      TypeDeclaration[] types = node.getTypes();
      for (int i = 0, length = types.length; i < length && !fFound; i++) {
        types[i].accept(this );
      }
    }
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60b856e0]]
// visit the methode declarations
MethodDeclaration 
12[[#60b856e0]]
// visit the field declarations
FieldDeclaration 
21[[#60b85680]]
methods 
22[[#60b85680]]
fields 
31[[#60b855c0]]
getMethods 
32[[#60b855c0]]
getFields