CloneSet2452


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.992statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1151459
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java
2151408
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java
Clone Instance
1
Line Count
15
Source Line
1459
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java

                BodyDeclaration prev = null;
                for (Iterator it = node.bodyDeclarations().iterator(); it.hasNext();)  {
                        BodyDeclaration d = (BodyDeclaration) it.next();
                        if (prev instanceof EnumConstantDeclaration) {
                                // enum constant declarations do not include punctuation
                                if (d instanceof EnumConstantDeclaration) {
                                        // enum constant declarations are separated by commas
                                        this.buffer.append(", "); //$NON-NLS-1$
                                }
                                else   {
                                        // semicolon separates last enum constant declaration from 
                                        // first class body declarations
                                        this.buffer.append("; "); //$NON-NLS-1$
                                }
                        }
                        d.accept(this );
                }


Clone Instance
2
Line Count
15
Source Line
1408
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java

                BodyDeclaration prev = null;
                for (Iterator it = node.bodyDeclarations().iterator(); it.hasNext();) {
                        BodyDeclaration d = (BodyDeclaration) it.next();
                        if (prev instanceof EnumConstantDeclaration) {
                                // enum constant declarations do not include punctuation
                                if (d instanceof EnumConstantDeclaration) {
                                        // enum constant declarations are separated by commas
                                        this.fBuffer.append(", "); //$NON-NLS-1$
                                }
                                else   {
                                        // semicolon separates last enum constant declaration from 
                                        // first class body declarations
                                        this.fBuffer.append("; "); //$NON-NLS-1$
                                }
                        }
                        d.accept(this );
                }


Clone AbstractionParameter Count: 1Parameter Bindings

BodyDeclaration prev = null;
for (Iterator it = node.bodyDeclarations().iterator(); it.hasNext();) {
  BodyDeclaration d = (BodyDeclaration) it.next();
  if (prev instanceof EnumConstantDeclaration) {
    // enum constant declarations do not include punctuation
    if (d instanceof EnumConstantDeclaration) {
      // enum constant declarations are separated by commas
      this. [[#variable7d1c7440]].append(", "); //$NON-NLS-1$
    }
    else {
      // semicolon separates last enum constant declaration from 
      // first class body declarations
      this. [[#variable7d1c7440]].append("; "); //$NON-NLS-1$
    }
  }
  d.accept(this );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7d1c7440]]
buffer 
12[[#7d1c7440]]
fBuffer