CloneSet837


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.958method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111312
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java
211331
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
312
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java

/**
 * Calls {@link Command#undo} for each command in the list.
 * In the case that {@link #isPessimistic} is false, only the last command will be undone
 * since the others will have been executed and not undo during {@link #prepare}.
 */
@Override public void undo() {
  if (isPessimistic) {
    super.undo();
  }
  else
    if ( !commandList.isEmpty()) {
      Command command = commandList.get(commandList.size() - 1);
      command.undo();
    }
}


First
Previous
Clone Instance
2
Line Count
11
Source Line
331
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java

/**
 * Calls {@link Command#redo} for each command in the list.
 * In the case that {@link #isPessimistic} is false, only the last command will be redone
 * since the others will have been executed and not undo during {@link #prepare}.
 */
@Override public void redo() {
  if (isPessimistic) {
    super.redo();
  }
  else
    if ( !commandList.isEmpty()) {
      Command command = commandList.get(commandList.size() - 1);
      command.redo();
    }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
   * Calls {@link Command#redo} for each command in the list.
   * In the case that {@link #isPessimistic} is false, only the last command will be redone
   * since the others will have been executed and not undo during {@link #prepare}.
   */
/**
   * Calls {@link Command#undo} for each command in the list.
   * In the case that {@link #isPessimistic} is false, only the last command will be undone
   * since the others will have been executed and not undo during {@link #prepare}.
   */
@Override public void [[#variable17439100]]() {
  if (isPessimistic) {
    super. [[#variable17439100]]();
  }
  else
    if ( !commandList.isEmpty()) {
      Command command = commandList.get(commandList.size() - 1);
      command. [[#variable17439100]]();
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#17439100]]
undo 
12[[#17439100]]
redo