CloneSet3045


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.995statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16232
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java
26413
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java
Clone Instance
1
Line Count
6
Source Line
232
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java

                        /* check for completion at the beginning of method body
                                behind an invalid signature
                         */
                        RecoveredMethod method = currentElement.enclosingMethod();
                        if (method != null) {
                                AbstractMethodDeclaration methodDecl = method.methodDeclaration;
                                if ((methodDecl.bodyStart == methodDecl.sourceEnd + 1) // was missing opening brace
                                    &&     (scanner.getLineNumber(orphan.sourceStart) == scanner.getLineNumber(methodDecl.sourceEnd))) {
                                        return;
                                }
                        }


Clone Instance
2
Line Count
6
Source Line
413
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java

                        /* check for completion at the beginning of method body
                                behind an invalid signature
                         */
                        RecoveredMethod method = currentElement.enclosingMethod();
                        if (method != null) {
                                AbstractMethodDeclaration methodDecl = method.methodDeclaration;
                                if ((methodDecl.bodyStart == methodDecl.sourceEnd + 1) // was missing opening brace
                                    &&     (scanner.getLineNumber(expression.sourceStart) == scanner.getLineNumber(methodDecl.sourceEnd))) {
                                        return;
                                }
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

/* check for completion at the beginning of method body
                                behind an invalid signature
                         */
RecoveredMethod method = currentElement.enclosingMethod();
if (method != null) {
  AbstractMethodDeclaration methodDecl = method.methodDeclaration;
  if ((methodDecl.bodyStart == methodDecl.sourceEnd + 1) // was missing opening brace
      && (scanner.getLineNumber( [[#variable77350d80]].sourceStart) == scanner.getLineNumber(methodDecl.sourceEnd))) {
    return;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77350d80]]
orphan 
12[[#77350d80]]
expression