CloneSet3473


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.989executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14207
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java
24211
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java
Clone Instance
1
Line Count
4
Source Line
207
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java

                                                                     {
                                String literal = ((StringLiteral) associatedNode).getLiteralValue();
                                String guess = guessConstantNameFromString(literal, excludedVariableNames);
                                return guess.length() == 0 ? new String[0]:  new String[] {
                                                                                            guess
                                                                                          };
                                                                     }


Clone Instance
2
Line Count
4
Source Line
211
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java

                                                                            {
                                String literal = ((NumberLiteral) associatedNode).getToken();
                                String guess = guessConstantNameFromString(literal, excludedVariableNames);
                                return guess.length() == 0 ? new String[0]:  new String[] {
                                                                                            guess
                                                                                          };
                                                                            }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  String literal = (( [[#variable78026400]]) associatedNode). [[#variable780264c0]]();
  String guess = guessConstantNameFromString(literal, excludedVariableNames);
  return guess.length() == 0 ? new String[0]: new String[] {
                                                             guess
                                                           };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78026400]]
StringLiteral 
12[[#78026400]]
NumberLiteral 
21[[#780264c0]]
getLiteralValue 
22[[#780264c0]]
getToken