CloneSet1084


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.990statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1102444
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
2102858
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
Clone Instance
1
Line Count
10
Source Line
2444
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                if (node.getAST().apiLevel() >= AST.JLS3) {
                        if (isChanged(node, SingleVariableDeclaration.VARARGS_PROPERTY)) {
                                if (getNewValue(node, SingleVariableDeclaration.VARARGS_PROPERTY).equals(Boolean.TRUE)) {
                                        doTextInsert(pos, "...", getEditGroup(node, SingleVariableDeclaration.VARARGS_PROPERTY)); //$NON-NLS-1$
                                }
                                else   {
                                        try {
                                                int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
                                                doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node, SingleVariableDeclaration.VARARGS_PROPERTY));
                                        } catch (CoreException e) {
                                                handleException(e);
                                          }
                                }
                        }
                }


Clone Instance
2
Line Count
10
Source Line
2858
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                if (node.getAST().apiLevel() >= AST.JLS3) {
                        if (isChanged(node, MethodRefParameter.VARARGS_PROPERTY)) {
                                if (getNewValue(node, MethodRefParameter.VARARGS_PROPERTY).equals(Boolean.TRUE)) {
                                        doTextInsert(pos, "...", getEditGroup(node, MethodRefParameter.VARARGS_PROPERTY)); //$NON-NLS-1$
                                }
                                else   {
                                        try {
                                                int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
                                                doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node, MethodRefParameter.VARARGS_PROPERTY));
                                        } catch (CoreException e) {
                                                handleException(e);
                                          }
                                }
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

if (node.getAST().apiLevel() >= AST.JLS3) {
  if (isChanged(node,  [[#variable59588320]].VARARGS_PROPERTY)) {
    if (getNewValue(node,  [[#variable59588320]].VARARGS_PROPERTY).equals(Boolean.TRUE)) {
      doTextInsert(pos, "...", getEditGroup(node,  [[#variable59588320]].VARARGS_PROPERTY)); //$NON-NLS-1$
    }
    else {
      try {
        int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
        doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node,  [[#variable59588320]].VARARGS_PROPERTY));
      }
      catch (CoreException e) {
        handleException(e);
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59588320]]
SingleVariableDeclaration 
12[[#59588320]]
MethodRefParameter