CloneSet1802


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8310.990class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19147
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java
28195
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java
38205
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java
Clone Instance
1
Line Count
9
Source Line
147
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java

        public boolean visit(CatchClause node) {
                // open a new scope for the exception declaration.
                fScopes.add(fScope);
                fScope = new Scope(fScope, node.getStartPosition(), node.getLength());
                return true;
        }

        public void endVisit(CatchClause node) {
                fScope = (Scope) fScopes.remove(fScopes.size() - 1);
        }


Clone Instance
2
Line Count
8
Source Line
195
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java

        public boolean visit(Block node) {
                fScopes.add(fScope);
                fScope = new Scope(fScope, node.getStartPosition(), node.getLength());
                return true;
        }

        public void endVisit(Block node) {
                fScope = (Scope) fScopes.remove(fScopes.size() - 1);
        }


Clone Instance
3
Line Count
8
Source Line
205
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java

        public boolean visit(ForStatement node) {
                fScopes.add(fScope);
                fScope = new Scope(fScope, node.getStartPosition(), node.getLength());
                return true;
        }

        public void endVisit(ForStatement node) {
                fScope = (Scope) fScopes.remove(fScopes.size() - 1);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

public boolean visit( [[#variable9bde45e0]] node) {
  // open a new scope for the exception declaration.
  fScopes.add(fScope);
  fScope = new Scope(fScope, node.getStartPosition(), node.getLength());
  return true;
}

public void endVisit( [[#variable9bde45e0]] node) {
  fScope = (Scope) fScopes.remove(fScopes.size() - 1);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9bde45e0]]
ForStatement 
12[[#9bde45e0]]
Block 
13[[#9bde45e0]]
CatchClause