Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 3 | 0.981 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 51 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ExecutableUtil.java |
2 | 9 | 113 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ExecutableUtil.java |
3 | 9 | 173 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ExecutableUtil.java |
| ||||
final org.eclipse.jdt.core.dom.MethodDeclaration methodAstNode = (org.eclipse.jdt.core.dom.MethodDeclaration) executable.getAstNode(); // Synthetic methods will have no ast node if (methodAstNode == null) return Collections.emptyList(); @SuppressWarnings("unchecked") final List<TypeParameter> typeParams = methodAstNode.typeParameters(); |
| ||||
// We always need to look into the ast to make sure the complete list of // parameters are returned since parameters with unresolved type will not // show up in the method binding final org.eclipse.jdt.core.dom.MethodDeclaration methodAstNode = (org.eclipse.jdt.core.dom.MethodDeclaration) executable.getAstNode(); // Synthetic methods will have no ast node if (methodAstNode == null) return Collections.emptyList(); @SuppressWarnings("unchecked") final List<SingleVariableDeclaration> params = methodAstNode.parameters(); |
| ||||
// We always need to look into the ast to make sure the complete list of // parameters are returned since parameters with unresolved type will not // show up in the method binding final org.eclipse.jdt.core.dom.MethodDeclaration methodAstNode = (org.eclipse.jdt.core.dom.MethodDeclaration) executable.getAstNode(); // If this method is synthetic, there will be no AST node if (methodAstNode == null) return Collections.emptyList(); @SuppressWarnings("unchecked") final List<Name> exceptions = methodAstNode.thrownExceptions(); |
| |||
// We always need to look into the ast to make sure the complete list of // parameters are returned since parameters with unresolved type will not // show up in the method binding final org.eclipse.jdt.core.dom.MethodDeclaration methodAstNode = (org.eclipse.jdt.core.dom.MethodDeclaration) executable.getAstNode(); // Synthetic methods will have no ast node // If this method is synthetic, there will be no AST node if (methodAstNode == null) return Collections.emptyList(); @SuppressWarnings("unchecked") final List< [[#variable961410e0]]> [[#variable7d180000]]= methodAstNode. [[#variablea4f080e0]](); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#961410e0]] | TypeParameter |
1 | 2 | [[#961410e0]] | SingleVariableDeclaration |
1 | 3 | [[#961410e0]] | Name |
2 | 1 | [[#7d180000]] | typeParams |
2 | 2 | [[#7d180000]] | params |
2 | 3 | [[#7d180000]] | exceptions |
3 | 1 | [[#a4f080e0]] | typeParameters |
3 | 2 | [[#a4f080e0]] | parameters |
3 | 3 | [[#a4f080e0]] | thrownExceptions |