Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 3 | 0.986 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 1870 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
2 | 9 | 2463 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
3 | 9 | 2753 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
4 | 10 | 3046 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| ||||
int kind = getChangeKind(node, ClassInstanceCreation.ANONYMOUS_CLASS_DECLARATION_PROPERTY); if (kind == RewriteEvent.REMOVED) { try { pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameLBRACE, pos); } catch (CoreException e) { handleException(e); } } else { pos = node.getStartPosition() + node.getLength(); // insert pos } |
| ||||
int kind = getChangeKind(node, SingleVariableDeclaration.INITIALIZER_PROPERTY); if (kind == RewriteEvent.REMOVED) { try { pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameEQUAL, pos); } catch (CoreException e) { handleException(e); } } else { pos = node.getStartPosition() + node.getLength(); // insert pos } |
| ||||
int kind = getChangeKind(node, VariableDeclarationFragment.INITIALIZER_PROPERTY); if (kind == RewriteEvent.REMOVED) { try { pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameEQUAL, pos); } catch (CoreException e) { handleException(e); } } else { pos = node.getStartPosition() + node.getLength(); // insert pos } |
| ||||
int kind = getChangeKind(node, EnumConstantDeclaration.ANONYMOUS_CLASS_DECLARATION_PROPERTY); if (kind == RewriteEvent.REMOVED) { try { // 'pos' can be before brace pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameLBRACE, pos); } catch (CoreException e) { handleException(e); } } else { pos = node.getStartPosition() + node.getLength(); // insert pos } |
| |||
int kind = getChangeKind(node, [[#variableb85f0fa0]]. [[#variableb3c097c0]]); if (kind == RewriteEvent.REMOVED) { try { // 'pos' can be before brace pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols. [[#variableb85f0fc0]], pos); } catch (CoreException e) { handleException(e); } } else { pos = node.getStartPosition() + node.getLength(); // insert pos } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b85f0fa0]] | EnumConstantDeclaration |
1 | 2 | [[#b85f0fa0]] | VariableDeclarationFragment |
1 | 3 | [[#b85f0fa0]] | SingleVariableDeclaration |
1 | 4 | [[#b85f0fa0]] | ClassInstanceCreation |
2 | 1 | [[#b3c097c0]] | ANONYMOUS_CLASS_DECLARATION_PROPERTY |
2 | 2 | [[#b3c097c0]] | INITIALIZER_PROPERTY |
2 | 3 | [[#b3c097c0]] | INITIALIZER_PROPERTY |
2 | 4 | [[#b3c097c0]] | ANONYMOUS_CLASS_DECLARATION_PROPERTY |
3 | 1 | [[#b85f0fc0]] | TokenNameLBRACE |
3 | 2 | [[#b85f0fc0]] | TokenNameEQUAL |
3 | 3 | [[#b85f0fc0]] | TokenNameEQUAL |
3 | 4 | [[#b85f0fc0]] | TokenNameLBRACE |