CloneSet9860


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12107
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalProposal.java
22237
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ParameterGuessingProposal.java
Clone Instance
1
Line Count
2
Source Line
107
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalProposal.java

                char[][] parameterNames = fProposal.findParameterNames(null);
                int count = parameterNames.length;


Clone Instance
2
Line Count
2
Source Line
237
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ParameterGuessingProposal.java

                // find matches in reverse order.  Do this because people tend to declare the variable meant for the last
                // parameter last.  That is, local variables for the last parameter in the method completion are more
                // likely to be closer to the point of code completion. As an example consider a "delegation" completion:
                //
                //              public void myMethod(int param1, int param2, int param3) {
                //                      someOtherObject.yourMethod(param1, param2, param3);
                //              }
                //
                // The other consideration is giving preference to variables that have not previously been used in this
                // code completion (which avoids "someOtherObject.yourMethod(param1, param1, param1)";
                char[][] parameterNames = fProposal.findParameterNames(null);
                int count = parameterNames.length;


Clone AbstractionParameter Count: 0Parameter Bindings

// find matches in reverse order.  Do this because people tend to declare the variable meant for the last
// parameter last.  That is, local variables for the last parameter in the method completion are more
// likely to be closer to the point of code completion. As an example consider a "delegation" completion:
//
//              public void myMethod(int param1, int param2, int param3) {
//                      someOtherObject.yourMethod(param1, param2, param3);
//              }
//
// The other consideration is giving preference to variables that have not previously been used in this
// code completion (which avoids "someOtherObject.yourMethod(param1, param1, param1)";
char[][] parameterNames = fProposal.findParameterNames(null);
int count = parameterNames.length;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None