CloneSet2376


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17778
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java
271199
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java
Clone Instance
1
Line Count
7
Source Line
778
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java

                        IfStatement outerIf = null;
                        if (ifStatement.getParent() instanceof IfStatement) {
                                outerIf = (IfStatement) ifStatement.getParent();
                        }
                        else   if (ifStatement.getParent() instanceof Block) {
                                Block block = (Block) ifStatement.getParent();
                                if ((block.getParent() instanceof IfStatement) && (block.statements().size() == 1)) {
                                        outerIf = (IfStatement) block.getParent();
                                }
                               }


Clone Instance
2
Line Count
7
Source Line
1199
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java

                        IfStatement outerIf = null;
                        if (ifStatement.getParent() instanceof IfStatement) {
                                outerIf = (IfStatement) ifStatement.getParent();
                        }
                        else   if (ifStatement.getParent() instanceof Block) {
                                Block block = (Block) ifStatement.getParent();
                                if ((block.getParent() instanceof IfStatement) && (block.statements().size() == 1)) {
                                        outerIf = (IfStatement) block.getParent();
                                }
                               }


Clone AbstractionParameter Count: 0Parameter Bindings

IfStatement outerIf = null;
if (ifStatement.getParent() instanceof IfStatement) {
  outerIf = (IfStatement) ifStatement.getParent();
}
else
  if (ifStatement.getParent() instanceof Block) {
    Block block = (Block) ifStatement.getParent();
    if ((block.getParent() instanceof IfStatement) && (block.statements().size() == 1)) {
      outerIf = (IfStatement) block.getParent();
    }
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None