CloneSet1698


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

                                RecoveredMethod recoveredMethod = (RecoveredMethod) currentElement;
                                /* filter out cases where scanner is still inside type header */
                                if ( !recoveredMethod.foundOpeningBrace) {
                                        AbstractMethodDeclaration method = recoveredMethod.methodDeclaration;
                                        if (method.thrownExceptions == null) {
                                                CompletionOnKeyword1 completionOnKeyword = new CompletionOnKeyword1(
                                                        identifierStack[ptr], 
                                                        identifierPositionStack[ptr], 
                                                        Keywords.THROWS                                            );
                                                method.thrownExceptions = new TypeReference[] {
                                                                                               completionOnKeyword
                                                                                              };
                                                recoveredMethod.foundOpeningBrace = true;
                                                this.assistNode = completionOnKeyword;
                                                this.lastCheckPoint = completionOnKeyword.sourceEnd + 1;
                                        }
                                }


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

                        RecoveredMethod recoveredMethod = (RecoveredMethod) currentElement;
                        /* filter out cases where scanner is still inside type header */
                        if ( !recoveredMethod.foundOpeningBrace) {
                                AbstractMethodDeclaration method = recoveredMethod.methodDeclaration;
                                if (method.thrownExceptions == null) {
                                        CompletionOnKeyword1 completionOnKeyword = new CompletionOnKeyword1(
                                                identifierStack[ptr], 
                                                identifierPositionStack[ptr], 
                                                Keywords.THROWS                                            );
                                        method.thrownExceptions = new TypeReference[] {
                                                                                       completionOnKeyword
                                                                                      };
                                        recoveredMethod.foundOpeningBrace = true;
                                        this.assistNode = completionOnKeyword;
                                        this.lastCheckPoint = completionOnKeyword.sourceEnd + 1;
                                }
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

RecoveredMethod recoveredMethod = (RecoveredMethod) currentElement;
/* filter out cases where scanner is still inside type header */
if ( !recoveredMethod.foundOpeningBrace) {
  AbstractMethodDeclaration method = recoveredMethod.methodDeclaration;
  if (method.thrownExceptions == null) {
    CompletionOnKeyword1 completionOnKeyword = new CompletionOnKeyword1(identifierStack[ptr], identifierPositionStack[ptr], Keywords.THROWS);
    method.thrownExceptions = new TypeReference[] {
                                                    completionOnKeyword
                                                  };
    recoveredMethod.foundOpeningBrace = true;
    this.assistNode = completionOnKeyword;
    this.lastCheckPoint = completionOnKeyword.sourceEnd + 1;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None