@Override public void dispose() { if (mapCommand != null) { mapCommand.dispose(); } removeCommand.doDispose(); } @Override public Collection<?> getResult() { return removeCommand.doGetResult(); } @Override public Collection<?> getAffectedObjects() { return removeCommand.doGetAffectedObjects(); } /** * 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(" (mappingDomain: " + mappingDomain + ")"); result.append(" (mapCommand: " + mapCommand + ")"); return result.toString();
@Override public void dispose() { if (mapCommand != null) { mapCommand.dispose(); } setCommand.doDispose(); } @Override public Collection<?> getResult() { return setCommand.doGetResult(); } @Override public Collection<?> getAffectedObjects() { return setCommand.doGetAffectedObjects(); } /** * 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(" (mappingDomain: " + mappingDomain + ")"); result.append(" (mapCommand: " + mapCommand + ")"); return result.toString();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/RemoveOverrideCommand.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/SetOverrideCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
@Override
1
@Override
2
  public void dispose()
2
  public void dispose()
3
  {
3
  {
4
    if (mapCommand != null) 
4
    if (mapCommand != null) 
5
    {
5
    {
6
      mapCommand.dispose();
6
      mapCommand.dispose();
7
    }
7
    }
8
    removeCommand.doDispose();
8
    setCommand.doDispose();
9
  }
9
  }
10
  @Override
10
  @Override
11
  public Collection<?> getResult()
11
  public Collection<?> getResult()
12
  {
12
  {
13
    return removeCommand.doGetResult();
13
    return setCommand.doGetResult();
14
  }
14
  }
15
  @Override
15
  @Override
16
  public Collection<?> getAffectedObjects()
16
  public Collection<?> getAffectedObjects()
17
  {
17
  {
18
    return removeCommand.doGetAffectedObjects();
18
    return setCommand.doGetAffectedObjects();
19
  }
19
  }
20
  /**
20
  /**
21
   * This gives an abbreviated name using this object's own class' name, without package qualification,
21
   * This gives an abbreviated name using this object's own class' name, without package qualification,
22
   * followed by a space separated list of <tt>field:value</tt> pairs.
22
   * followed by a space separated list of <tt>field:value</tt> pairs.
23
   */
23
   */
24
  @Override
24
  @Override
25
  public String toString()
25
  public String toString()
26
  {
26
  {
27
    StringBuffer result = new StringBuffer(super.toString());
27
    StringBuffer result = new StringBuffer(super.toString());
28
    result.append(" (mappingDomain: " + mappingDomain + ")");
28
    result.append(" (mappingDomain: " + mappingDomain + ")");
29
    result.append(" (mapCommand: " + mapCommand + ")");
29
    result.append(" (mapCommand: " + mapCommand + ")");
30
    return result.toString();
30
    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