CloneSet2354


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17417
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java
27478
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java
Clone Instance
1
Line Count
7
Source Line
417
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java

                                rewrite.set(decl, MethodDeclaration.BODY_PROPERTY, newBody, null);

                                Expression expr = ASTNodeFactory.newDefaultExpression(ast, decl.getReturnType2(), decl.getExtraDimensions());
                                if (expr != null) {
                                        ReturnStatement returnStatement = ast.newReturnStatement();
                                        returnStatement.setExpression(expr);
                                        newBody.statements().add(returnStatement);
                                }


Clone Instance
2
Line Count
7
Source Line
478
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java

                        rewrite.set(decl, MethodDeclaration.BODY_PROPERTY, newBody, null);

                        Expression expr = ASTNodeFactory.newDefaultExpression(ast, decl.getReturnType2(), decl.getExtraDimensions());
                        if (expr != null) {
                                ReturnStatement returnStatement = ast.newReturnStatement();
                                returnStatement.setExpression(expr);
                                newBody.statements().add(returnStatement);
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

rewrite.set(decl, MethodDeclaration.BODY_PROPERTY, newBody, null);
Expression expr = ASTNodeFactory.newDefaultExpression(ast, decl.getReturnType2(), decl.getExtraDimensions());
if (expr != null) {
  ReturnStatement returnStatement = ast.newReturnStatement();
  returnStatement.setExpression(expr);
  newBody.statements().add(returnStatement);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None