@Override public void dispose() { if (subcommand != null) { subcommand.dispose(); } super.dispose(); } /** * 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(" (domain: " + domain + ")"); result.append(" (collection: " + collection + ")"); result.append(" (subcommand: " + subcommand + ")"); return result.toString();
@Override public void dispose() { if (subcommand != null) { subcommand.dispose(); } super.dispose(); } /** * 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(" (domain: " + domain + ")"); result.append(" (collection: " + collection + ")"); result.append(" (subcommand: " + subcommand + ")"); return result.toString();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/AddMappingCommand.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/RemoveMappingCommand.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 (subcommand != null)
4
    if (subcommand != null)
5
    {
5
    {
6
      subcommand.dispose();
6
      subcommand.dispose();
7
    }
7
    }
8
    super.dispose();
8
    super.dispose();
9
  }
9
  }
10
  /**
10
  /**
11
   * This gives an abbreviated name using this object's own class' name, without package qualification,
11
   * This gives an abbreviated name using this object's own class' name, without package qualification,
12
   * followed by a space separated list of <tt>field:value</tt> pairs.
12
   * followed by a space separated list of <tt>field:value</tt> pairs.
13
   */
13
   */
14
  @Override
14
  @Override
15
  public String toString()
15
  public String toString()
16
  {
16
  {
17
    StringBuffer result = new StringBuffer(super.toString());
17
    StringBuffer result = new StringBuffer(super.toString());
18
    result.append(" (domain: " + domain + ")");
18
    result.append(" (domain: " + domain + ")");
19
    result.append(" (collection: " + collection + ")");
19
    result.append(" (collection: " + collection + ")");
20
    result.append(" (subcommand: " + subcommand + ")");
20
    result.append(" (subcommand: " + subcommand + ")");
21
    return result.toString();
21
    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