CloneSet1834


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.990statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110217
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java
210849
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java
Clone Instance
1
Line Count
10
Source Line
217
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java

                        if (associatedNode instanceof MethodInvocation) {
                                proposals.addAll(guessConstNamesFromMethodInvocation((MethodInvocation) associatedNode, excludedVariableNames));
                        }
                        else   if (associatedNode instanceof CastExpression) {
                                Expression expression = ((CastExpression) associatedNode).getExpression();
                                if (expression instanceof MethodInvocation) {
                                        proposals.addAll(guessConstNamesFromMethodInvocation((MethodInvocation) expression, excludedVariableNames));
                                }
                               }
                        if (associatedNode instanceof Expression) {
                                proposals.addAll(guessConstNamesFromExpression((Expression) associatedNode, excludedVariableNames));
                        }


Clone Instance
2
Line Count
10
Source Line
849
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java

                        if (associatedNode instanceof MethodInvocation) {
                                proposals.addAll(guessTempNamesFromMethodInvocation((MethodInvocation) associatedNode, excludedVariableNames));
                        }
                        else   if (associatedNode instanceof CastExpression) {
                                Expression expression = ((CastExpression) associatedNode).getExpression();
                                if (expression instanceof MethodInvocation) {
                                        proposals.addAll(guessTempNamesFromMethodInvocation((MethodInvocation) expression, excludedVariableNames));
                                }
                               }
                        if (associatedNode instanceof Expression) {
                                proposals.addAll(guessTempNamesFromExpression((Expression) associatedNode, excludedVariableNames));
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

if (associatedNode instanceof MethodInvocation) {
  proposals.addAll( [[#variable58850420]]((MethodInvocation) associatedNode, excludedVariableNames));
}
else
  if (associatedNode instanceof CastExpression) {
    Expression expression = ((CastExpression) associatedNode).getExpression();
    if (expression instanceof MethodInvocation) {
      proposals.addAll( [[#variable58850420]]((MethodInvocation) expression, excludedVariableNames));
    }
  }
if (associatedNode instanceof Expression) {
  proposals.addAll( [[#variable77b17a60]]((Expression) associatedNode, excludedVariableNames));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58850420]]
guessTempNamesFromMethodInvocation 
12[[#58850420]]
guessConstNamesFromMethodInvocation 
21[[#77b17a60]]
guessTempNamesFromExpression 
22[[#77b17a60]]
guessConstNamesFromExpression