CloneSet469


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

/**
 * Determines the result by composing the results of the commands in the list;
 * this is affected by the setting of {@link #resultIndex}.
 * @return the result.
 */
@Override public Collection<? > getResult() {
  if (commandList.isEmpty()) {
    return Collections.EMPTY_LIST;
  }
  else
    if (resultIndex == LAST_COMMAND_ALL) {
      return commandList.get(commandList.size() - 1).getResult();
    }
    else
      if (resultIndex == MERGE_COMMAND_ALL) {
        return getMergedResultCollection();
      }
      else
        if (resultIndex < commandList.size()) {
          return commandList.get(resultIndex).getResult();
        }
        else {
          return Collections.EMPTY_LIST;
        }
}


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

/**
 * Determines the affected objects by composing the affected objects of the commands in the list;
 * this is affected by the setting of {@link #resultIndex}.
 * @return the affected objects.
 */
@Override public Collection<? > getAffectedObjects() {
  if (commandList.isEmpty()) {
    return Collections.EMPTY_LIST;
  }
  else
    if (resultIndex == LAST_COMMAND_ALL) {
      return commandList.get(commandList.size() - 1).getAffectedObjects();
    }
    else
      if (resultIndex == MERGE_COMMAND_ALL) {
        return getMergedAffectedObjectsCollection();
      }
      else
        if (resultIndex < commandList.size()) {
          return commandList.get(resultIndex).getAffectedObjects();
        }
        else {
          return Collections.EMPTY_LIST;
        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
   * Determines the affected objects by composing the affected objects of the commands in the list;
   * this is affected by the setting of {@link #resultIndex}.
   * @return the affected objects.
   */
/**
   * Determines the result by composing the results of the commands in the list;
   * this is affected by the setting of {@link #resultIndex}.
   * @return the result.
   */
@Override public Collection<? >  [[#variable172ccee0]]() {
  if (commandList.isEmpty()) {
    return Collections.EMPTY_LIST;
  }
  else
    if (resultIndex == LAST_COMMAND_ALL) {
      return commandList.get(commandList.size() - 1). [[#variable172ccee0]]();
    }
    else
      if (resultIndex == MERGE_COMMAND_ALL) {
        return [[#variable172cce00]]();
      }
      else
        if (resultIndex < commandList.size()) {
          return commandList.get(resultIndex). [[#variable172ccee0]]();
        }
        else {
          return Collections.EMPTY_LIST;
        }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#172ccee0]]
getResult 
12[[#172ccee0]]
getAffectedObjects 
21[[#172cce00]]
getMergedResultCollection 
22[[#172cce00]]
getMergedAffectedObjectsCollection