CloneSet1146


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2450.952statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14203
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
24512
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java
32158
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java
421036
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java
Clone Instance
1
Line Count
4
Source Line
203
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        IBinding[] varsBefore = (new ScopeAnalyzer(root)).getDeclarationsInScope(node.getStartPosition(), 
                                 ScopeAnalyzer.VARIABLES                                        );
                        IBinding[] varsAfter = (new ScopeAnalyzer(root)).getDeclarationsAfter(node.getStartPosition() + 
                                   node.getLength()                                           , ScopeAnalyzer.VARIABLES);


Clone Instance
2
Line Count
4
Source Line
512
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java

                IBinding[] varsBefore = (new ScopeAnalyzer(root)).getDeclarationsInScope(fOldForStatement.getStartPosition(), 
                         ScopeAnalyzer.VARIABLES                                        );
                IBinding[] varsAfter = (new ScopeAnalyzer(root)).getDeclarationsAfter(fOldForStatement.getStartPosition() + 
                           fOldForStatement.getLength()                               , ScopeAnalyzer.VARIABLES);


Clone Instance
3
Line Count
2
Source Line
158
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java

                final IBinding[] before = (new ScopeAnalyzer(unit)).getDeclarationsInScope(fStatement.getStartPosition(), ScopeAnalyzer.VARIABLES);
                final IBinding[] after = (new ScopeAnalyzer(unit)).getDeclarationsAfter(fStatement.getStartPosition() + fStatement.getLength(), ScopeAnalyzer.VARIABLES);


Clone Instance
4
Line Count
2
Source Line
1036
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java

                IBinding[] varsBefore = (new ScopeAnalyzer(root)).getDeclarationsInScope(node.getStartPosition(), ScopeAnalyzer.VARIABLES);
                IBinding[] varsAfter = (new ScopeAnalyzer(root)).getDeclarationsAfter(node.getStartPosition() + node.getLength(), ScopeAnalyzer.VARIABLES);


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variable53e65000]]IBinding[]  [[#variable53c8d940]]= (new ScopeAnalyzer( [[#variable55316d60]])).getDeclarationsInScope( [[#variable55316c20]].getStartPosition(), ScopeAnalyzer.VARIABLES);
 [[#variable53e65000]]IBinding[]  [[#variable53e64f60]]= (new ScopeAnalyzer( [[#variable55316d60]])).getDeclarationsAfter( [[#variable55316c20]].getStartPosition() +  [[#variable55316c20]].getLength(), ScopeAnalyzer.VARIABLES);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53e65000]]
12[[#53e65000]]
final 
13[[#53e65000]]
14[[#53e65000]]
21[[#53c8d940]]
varsBefore 
22[[#53c8d940]]
before 
23[[#53c8d940]]
varsBefore 
24[[#53c8d940]]
varsBefore 
31[[#55316d60]]
root 
32[[#55316d60]]
unit 
33[[#55316d60]]
root 
34[[#55316d60]]
root 
41[[#55316c20]]
node 
42[[#55316c20]]
fStatement 
43[[#55316c20]]
fOldForStatement 
44[[#55316c20]]
node 
51[[#53e64f60]]
varsAfter 
52[[#53e64f60]]
after 
53[[#53e64f60]]
varsAfter 
54[[#53e64f60]]
varsAfter