Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.978 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 564 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java |
2 | 12 | 592 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java |
| ||||
ASTNode temp = node; int count = iterations; do { int nodeOffset = temp.getStartPosition(); int problemOffset = problem.getSourceStart(); if (nodeOffset <= problemOffset && problemOffset < nodeOffset + temp.getLength()) { result.add(problem); count = 0; } else { count--; } } while ( (temp = temp.getParent()) != null && count > 0); |
| ||||
ASTNode temp = node; int count = iterations; do { int nodeOffset = temp.getStartPosition(); int messageOffset = message.getStartPosition(); if (nodeOffset <= messageOffset && messageOffset < nodeOffset + temp.getLength()) { result.add(message); count = 0; } else { count--; } } while ( (temp = temp.getParent()) != null && count > 0); |
| |||
ASTNode temp = node; int count = iterations; do { int nodeOffset = temp.getStartPosition(); int [[#variable581dde20]]= [[#variableb1e689a0]]. [[#variableb23be9e0]](); if (nodeOffset <= [[#variable581dde20]]&& [[#variable581dde20]] < nodeOffset + temp.getLength()) { result.add( [[#variableb1e689a0]]); count = 0; } else { count--; } } while ((temp = temp.getParent()) != null && count > 0); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#581dde20]] | problemOffset |
1 | 2 | [[#581dde20]] | messageOffset |
2 | 1 | [[#b1e689a0]] | problem |
2 | 2 | [[#b1e689a0]] | message |
3 | 1 | [[#b23be9e0]] | getSourceStart |
3 | 2 | [[#b23be9e0]] | getStartPosition |