CloneSet2020


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1171799
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
2171985
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
Clone Instance
1
Line Count
17
Source Line
1799
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

        /**
         * @see ASTVisitor#visit(BreakStatement)
         */
        public boolean visit(BreakStatement node) {
                if ( !isActive()) {
                        return false;
                }
                // create the equivalent jump instruction in the instruction
                // and add an element in the list of pending break and continue
                // instructions
                Jump instruction = new Jump();
                SimpleName labelName = node.getLabel();
                String label = null;
                if (labelName != null) {
                        label = labelName.getIdentifier();
                }
                push(instruction);
                fCompleteInstructions.add(new CompleteInstruction(instruction, label, true));

                return false;
        }


Clone Instance
2
Line Count
17
Source Line
1985
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

        /**
         * @see ASTVisitor#visit(ContinueStatement)
         */
        public boolean visit(ContinueStatement node) {
                if ( !isActive()) {
                        return false;
                }
                // create the equivalent jump instruction in the instruction
                // and add an element in the list of pending break and continue
                // instructions
                Jump instruction = new Jump();
                SimpleName labelName = node.getLabel();
                String label = null;
                if (labelName != null) {
                        label = labelName.getIdentifier();
                }
                push(instruction);
                fCompleteInstructions.add(new CompleteInstruction(instruction, label, false));

                return false;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @see ASTVisitor#visit(BreakStatement)
         */
/**
         * @see ASTVisitor#visit(ContinueStatement)
         */
public boolean visit( [[#variableb94fdd00]] node) {
  if ( !isActive()) {
    return false;
  }
  // create the equivalent jump instruction in the instruction
  // and add an element in the list of pending break and continue
  // instructions
  Jump instruction = new Jump();
  SimpleName labelName = node.getLabel();
  String label = null;
  if (labelName != null) {
    label = labelName.getIdentifier();
  }
  push(instruction);
  fCompleteInstructions.add(new CompleteInstruction(instruction, label,  [[#variableb94fdc80]]));
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b94fdd00]]
BreakStatement 
12[[#b94fdd00]]
ContinueStatement 
21[[#b94fdc80]]
true 
22[[#b94fdc80]]
false