Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.977 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 692 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java |
2 | 8 | 702 | 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; } |
| ||||
public static TryStatement findParentTryStatement(ASTNode node) { while ((node != null) && ( !(node instanceof TryStatement))) { node = node.getParent(); if (node instanceof BodyDeclaration) { return null; } } return (TryStatement) node; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5881c300]] | Statement |
1 | 2 | [[#5881c300]] | TryStatement |
2 | 1 | [[#5881d5a0]] | findParentStatement |
2 | 2 | [[#5881d5a0]] | findParentTryStatement |