Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.990 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 217 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java |
2 | 10 | 849 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.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)); } |
| ||||
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)); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58850420]] | guessTempNamesFromMethodInvocation |
1 | 2 | [[#58850420]] | guessConstNamesFromMethodInvocation |
2 | 1 | [[#77b17a60]] | guessTempNamesFromExpression |
2 | 2 | [[#77b17a60]] | guessConstNamesFromExpression |