Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 0 | 1.000 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 417 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java |
2 | 7 | 478 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |