Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 463 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java |
2 | 5 | 470 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java |
| ||||
private Expression createReceiver(ASTRewrite rewriter, CallContext context, IMethodBinding method) { String receiver = getReceiver(context, method.getModifiers()); if (receiver == null) return null; return (Expression) rewriter.createStringPlaceholder(receiver, ASTNode.METHOD_INVOCATION); } |
| ||||
private Expression createReceiver(ASTRewrite rewriter, CallContext context, IVariableBinding field) { String receiver = getReceiver(context, field.getModifiers()); if (receiver == null) return null; return (Expression) rewriter.createStringPlaceholder(receiver, ASTNode.SIMPLE_NAME); } |
| |||
private Expression createReceiver(ASTRewrite rewriter, CallContext context, [[#variable5650fb20]] [[#variable5650faa0]]) { String receiver = getReceiver(context, [[#variable5650faa0]].getModifiers()); if (receiver == null) return null; return (Expression) rewriter.createStringPlaceholder(receiver, ASTNode. [[#variable5650fa20]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5650fb20]] | IMethodBinding |
1 | 2 | [[#5650fb20]] | IVariableBinding |
2 | 1 | [[#5650faa0]] | method |
2 | 2 | [[#5650faa0]] | field |
3 | 1 | [[#5650fa20]] | METHOD_INVOCATION |
3 | 2 | [[#5650fa20]] | SIMPLE_NAME |