CloneSet2217


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.981block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111259
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java
211202
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java
Clone Instance
1
Line Count
11
Source Line
259
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java

                                                                                                                                                    {
                        ArrayList sideEffectNodes = new ArrayList();
                        initializerNode.accept(new SideEffectFinder(sideEffectNodes));
                        int nSideEffects = sideEffectNodes.size();
                        if (nSideEffects == 0) {
                                if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) {
                                        rewrite.replace(statementNode, rewrite.getAST().newBlock(), group);
                                }
                                else   {
                                        rewrite.remove(statementNode, group);
                                }
                        }
                        else   {
                                // do nothing yet
                        }
                                                                                                                                                    }


Clone Instance
2
Line Count
11
Source Line
202
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java

                                                                                                                       {
                ArrayList sideEffectNodes = new ArrayList();
                initializerNode.accept(new SideEffectFinder(sideEffectNodes));
                int nSideEffects = sideEffectNodes.size();
                if (nSideEffects == 0) {
                        if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) {
                                rewrite.replace(statementNode, rewrite.getAST().newBlock(), null);
                        }
                        else   {
                                rewrite.remove(statementNode, null);
                        }
                }
                else   {
                        // do nothing yet
                }
                                                                                                                       }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  ArrayList sideEffectNodes = new ArrayList();
  initializerNode.accept(new SideEffectFinder(sideEffectNodes));
  int nSideEffects = sideEffectNodes.size();
  if (nSideEffects == 0) {
    if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) {
      rewrite.replace(statementNode, rewrite.getAST().newBlock(),  [[#variable63a41340]]);
    }
    else {
      rewrite.remove(statementNode,  [[#variable63a41340]]);
    }
  }
  else {
  // do nothing yet
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#63a41340]]
null 
12[[#63a41340]]
group