CloneSet2617


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7260.952statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17536
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
26573
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
Clone Instance
1
Line Count
7
Source Line
536
Source File
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;


Clone Instance
2
Line Count
6
Source Line
573
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

                                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;


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a3f68f80]]
expressionRegion 
12[[#a3f68f80]]
doRegion 
21[[#a3f68f00]]
expression 
22[[#a3f68f00]]
doStatement 
31[[#a3f68ea0]]
thenStatement 
32[[#a3f68ea0]]
body 
41[[#a3f68e60]]
ifStatement 
42[[#a3f68e60]]
doStatement 
51[[#a3f68dc0]]
getThenStatement 
52[[#a3f68dc0]]
getBody 
61[[#5923a060]]
thenRegion 
62[[#5923a060]]
bodyRegion