CloneSet2166


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121780
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
2121921
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
Clone Instance
1
Line Count
12
Source Line
1780
Source File
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;
        }


Clone Instance
2
Line Count
12
Source Line
1921
Source File
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(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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/* (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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5d4594c0]]
BreakStatement 
12[[#5d4594c0]]
ContinueStatement 
21[[#5d459420]]
TokenNamebreak 
22[[#5d459420]]
TokenNamecontinue