Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 193 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java |
2 | 6 | 399 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ConstructorInvocation) */ public ITypeConstraint[] create(ConstructorInvocation invocation) { List arguments = invocation.arguments(); List result = new ArrayList(arguments.size()); IMethodBinding methodBinding = invocation.resolveConstructorBinding(); result.addAll(Arrays.asList(getArgumentConstraints(arguments, methodBinding))); return (ITypeConstraint[]) result.toArray(new ITypeConstraint[result.size()]); } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SuperConstructorInvocation) */ public ITypeConstraint[] create(SuperConstructorInvocation invocation) { List arguments = invocation.arguments(); List result = new ArrayList(arguments.size()); IMethodBinding methodBinding = invocation.resolveConstructorBinding(); result.addAll(Arrays.asList(getArgumentConstraints(arguments, methodBinding))); return (ITypeConstraint[]) result.toArray(new ITypeConstraint[result.size()]); } |
| |||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ConstructorInvocation) */ /* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SuperConstructorInvocation) */ public ITypeConstraint[] create( [[#variable55db2b80]] invocation) { List arguments = invocation.arguments(); List result = new ArrayList(arguments.size()); IMethodBinding methodBinding = invocation.resolveConstructorBinding(); result.addAll(Arrays.asList(getArgumentConstraints(arguments, methodBinding))); return (ITypeConstraint[]) result.toArray(new ITypeConstraint[result.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55db2b80]] | ConstructorInvocation |
1 | 2 | [[#55db2b80]] | SuperConstructorInvocation |