Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 0 | 1.000 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 2273 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java |
2 | 13 | 2305 | 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; } } |
| ||||
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; } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |