CloneSet749


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10320.994statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110333
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java
210407
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java
310460
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredType.java
Clone Instance
1
Line Count
10
Source Line
333
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java

                                // protection for bugs 15142
                                int length = parser.astLengthStack[parser.astLengthPtr];
                                int astPtr = parser.astPtr - length;
                                boolean canConsume = astPtr >= 0;
                                if (canConsume) {
                                        if (( !(parser.astStack[astPtr] instanceof AbstractMethodDeclaration))) {
                                                canConsume = false;
                                        }
                                        for (int i = 1, max = length + 1; i < max; i++) {
                                                if ( !(parser.astStack[astPtr + i] instanceof  TypeReference)) {
                                                        canConsume = false;
                                                }
                                        }
                                }


Clone Instance
2
Line Count
10
Source Line
407
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java

                                        // protection for bugs 15142
                                        int length = parser.astLengthStack[parser.astLengthPtr];
                                        int astPtr = parser.astPtr - length;
                                        boolean canConsume = astPtr >= 0;
                                        if (canConsume) {
                                                if (( !(parser.astStack[astPtr] instanceof AbstractMethodDeclaration))) {
                                                        canConsume = false;
                                                }
                                                for (int i = 1, max = length + 1; i < max; i++) {
                                                        if ( !(parser.astStack[astPtr + i] instanceof  Argument)) {
                                                                canConsume = false;
                                                        }
                                                }
                                        }


Clone Instance
3
Line Count
10
Source Line
460
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredType.java

                        int length = parser.astLengthStack[parser.astLengthPtr];
                        int astPtr = parser.astPtr - length;
                        boolean canConsume = astPtr >= 0;
                        if (canConsume) {
                                if (( !(parser.astStack[astPtr] instanceof TypeDeclaration))) {
                                        canConsume = false;
                                }
                                for (int i = 1, max = length + 1; i < max; i++) {
                                        if ( !(parser.astStack[astPtr + i] instanceof  TypeReference)) {
                                                canConsume = false;
                                        }
                                }
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

// protection for bugs 15142
int length = parser.astLengthStack[parser.astLengthPtr];
int astPtr = parser.astPtr - length;
boolean canConsume = astPtr >= 0;
if (canConsume) {
  if (( !(parser.astStack[astPtr] instanceof [[#variable9943ab00]]))) {
    canConsume = false;
  }
  for (int i = 1, max = length + 1; i < max; i++) {
    if ( !(parser.astStack[astPtr + i] instanceof [[#variableb9a3d260]])) {
      canConsume = false;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9943ab00]]
AbstractMethodDeclaration 
12[[#9943ab00]]
AbstractMethodDeclaration 
13[[#9943ab00]]
TypeDeclaration 
21[[#b9a3d260]]
Argument 
22[[#b9a3d260]]
TypeReference 
23[[#b9a3d260]]
TypeReference