CloneSet3878


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18692
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java
28702
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java
Clone Instance
1
Line Count
8
Source Line
692
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java

        public static Statement findParentStatement(ASTNode node) {
                while ((node != null) && ( !(node instanceof Statement))) {
                        node = node.getParent();
                        if (node instanceof BodyDeclaration) {
                                return null;
                        }
                }
                return (Statement) node;
        }


Clone Instance
2
Line Count
8
Source Line
702
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java

        public static TryStatement findParentTryStatement(ASTNode node) {
                while ((node != null) && ( !(node instanceof TryStatement))) {
                        node = node.getParent();
                        if (node instanceof BodyDeclaration) {
                                return null;
                        }
                }
                return (TryStatement) node;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public static [[#variable5881c300]]  [[#variable5881d5a0]](ASTNode node) {
  while ((node != null) && ( !(node instanceof [[#variable5881c300]]))) {
    node = node.getParent();
    if (node instanceof BodyDeclaration) {
      return null;
    }
  }
  return ( [[#variable5881c300]]) node;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5881c300]]
Statement 
12[[#5881c300]]
TryStatement 
21[[#5881d5a0]]
findParentStatement 
22[[#5881d5a0]]
findParentTryStatement