Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 6 | 0.952 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 536 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java |
2 | 6 | 573 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java |
| ||||
IRegion expressionRegion = createRegion(expression, info.delta); Statement thenStatement = ifStatement.getThenStatement(); IRegion thenRegion = createRegion(thenStatement, info.delta); // between expression and then statement if (expressionRegion.getOffset() + expressionRegion.getLength() <= offset && offset + length <= thenRegion.getOffset()) return thenStatement != null; |
| ||||
IRegion doRegion = createRegion(doStatement, info.delta); Statement body = doStatement.getBody(); IRegion bodyRegion = createRegion(body, info.delta); if (doRegion.getOffset() + doRegion.getLength() <= offset && offset + length <= bodyRegion.getOffset()) return body != null; |
| |||
IRegion [[#variablea3f68f80]]= createRegion( [[#variablea3f68f00]], info.delta); Statement [[#variablea3f68ea0]]= [[#variablea3f68e60]]. [[#variablea3f68dc0]](); IRegion [[#variable5923a060]]= createRegion( [[#variablea3f68ea0]], info.delta); // between expression and then statement if ( [[#variablea3f68f80]].getOffset() + [[#variablea3f68f80]].getLength() <= offset && offset + length <= [[#variable5923a060]].getOffset()) return [[#variablea3f68ea0]]!= null; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a3f68f80]] | expressionRegion |
1 | 2 | [[#a3f68f80]] | doRegion |
2 | 1 | [[#a3f68f00]] | expression |
2 | 2 | [[#a3f68f00]] | doStatement |
3 | 1 | [[#a3f68ea0]] | thenStatement |
3 | 2 | [[#a3f68ea0]] | body |
4 | 1 | [[#a3f68e60]] | ifStatement |
4 | 2 | [[#a3f68e60]] | doStatement |
5 | 1 | [[#a3f68dc0]] | getThenStatement |
5 | 2 | [[#a3f68dc0]] | getBody |
6 | 1 | [[#5923a060]] | thenRegion |
6 | 2 | [[#5923a060]] | bodyRegion |