Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1780 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
2 | 12 | 1921 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(BreakStatement) */ public boolean visit(BreakStatement node) { if ( !hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } try { int offset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNamebreak, node.getStartPosition()); rewriteNode(node, BreakStatement.LABEL_PROPERTY, offset, ASTRewriteFormatter.SPACE); // space between break and label } catch (CoreException e) { handleException(e); } return false; } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ContinueStatement) */ public boolean visit(ContinueStatement node) { if ( !hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } try { int offset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNamecontinue, node.getStartPosition()); rewriteNode(node, ContinueStatement.LABEL_PROPERTY, offset, ASTRewriteFormatter.SPACE); // space between continue and label } catch (CoreException e) { handleException(e); } return false; } |
| |||
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(BreakStatement) */ /* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ContinueStatement) */ public boolean visit( [[#variable5d4594c0]] node) { if ( !hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } try { int offset = getScanner().getTokenEndOffset(ITerminalSymbols. [[#variable5d459420]], node.getStartPosition()); rewriteNode(node, [[#variable5d4594c0]].LABEL_PROPERTY, offset, ASTRewriteFormatter.SPACE); // space between break and label // space between continue and label } catch (CoreException e) { handleException(e); } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5d4594c0]] | BreakStatement |
1 | 2 | [[#5d4594c0]] | ContinueStatement |
2 | 1 | [[#5d459420]] | TokenNamebreak |
2 | 2 | [[#5d459420]] | TokenNamecontinue |