@Override public Collection<?> doGetResult() { return collection; } @Override public Collection<?> doGetAffectedObjects() { return affectedObjects; } /** * This gives an abbreviated name using this object's own class' name, without package qualification, * followed by a space separated list of <tt>field:value</tt> pairs. */ @Override public String toString() { StringBuffer result = new StringBuffer(super.toString()); result.append(" (owner: " + owner + ")"); result.append(" (feature: " + feature + ")"); result.append(" (ownerList: " + ownerList + ")"); result.append(" (collection: " + collection + ")"); result.append(" (index: " + index + ")"); result.append(" (affectedObjects:" + affectedObjects + ")"); return result.toString();
@Override public Collection<?> doGetResult() { return collection; } @Override public Collection<?> doGetAffectedObjects() { return affectedObjects; } /** * This gives an abbreviated name using this object's own class' name, without package qualification, * followed by a space separated list of <tt>field:value</tt> pairs. */ @Override public String toString() { StringBuffer result = new StringBuffer(super.toString()); result.append(" (owner: " + owner + ")"); result.append(" (feature: " + feature + ")"); result.append(" (ownerList: " + ownerList + ")"); result.append(" (collection: " + collection + ")"); result.append(" (indices: " + Arrays.toString(indices) + ")"); result.append(" (affectedObjects: " + affectedObjects + ")"); return result.toString();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
@Override
1
@Override
2
  public Collection<?> doGetResult()
2
  public Collection<?> doGetResult()
3
  {
3
  {
4
    return collection;
4
    return collection;
5
  }
5
  }
6
  @Override
6
  @Override
7
  public Collection<?> doGetAffectedObjects()
7
  public Collection<?> doGetAffectedObjects()
8
  {
8
  {
9
    return affectedObjects;
9
    return affectedObjects;
10
  }
10
  }
11
  /**
11
  /**
12
   * This gives an abbreviated name using this object's own class' name, without package qualification,
12
   * This gives an abbreviated name using this object's own class' name, without package qualification,
13
   * followed by a space separated list of <tt>field:value</tt> pairs.
13
   * followed by a space separated list of <tt>field:value</tt> pairs.
14
   */
14
   */
15
  @Override
15
  @Override
16
  public String toString()
16
  public String toString()
17
  {
17
  {
18
    StringBuffer result = new StringBuffer(super.toString());
18
    StringBuffer result = new StringBuffer(super.toString());
19
    result.append(" (owner: " + owner + ")");
19
    result.append(" (owner: " + owner + ")");
20
    result.append(" (feature: " + feature + ")");
20
    result.append(" (feature: " + feature + ")");
21
    result.append(" (ownerList: " + ownerList + ")");
21
    result.append(" (ownerList: " + ownerList + ")");
22
    result.append(" (collection: " + collection + ")");
22
    result.append(" (collection: " + collection + ")");
23
    result.append(" (index: " + index + ")");
23
    result.append(" (indices: " + Arrays.toString(indices) + ")");
24
    result.append(" (affectedObjects:" + affectedObjects + ")");
24
    result.append(" (affectedObjects: " + affectedObjects + ")");
25
    return result.toString();
25
    return result.toString();
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0