| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 2 | 2 | 0.991 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 4221 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
| 2 | 14 | 4241 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
| ||||
/**
* This method is used to retrieve position before the next right brace or semi-colon.
* @return int the position found.
*/
protected int retrieveRightBrace(int start, int end) {
this.scanner.resetTo(start, end);
try {
int token;
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
switch (token) {
case TerminalTokens.TokenNameRBRACE:
return this.scanner.currentPosition - 1;
}
}
} catch (InvalidInputException e) {
// ignore
}
return -1;
}
|
| ||||
/**
* This method is used to retrieve the position of the right bracket.
* @return int the dimension found, -1 if none
*/
protected int retrieveRightBracketPosition(int start, int end) {
this.scanner.resetTo(start, end);
try {
int token;
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
switch (token) {
case TerminalTokens.TokenNameRBRACKET:
return this.scanner.currentPosition - 1;
}
}
} catch (InvalidInputException e) {
// ignore
}
return -1;
}
|
| |||
/**
* This method is used to retrieve the position of the right bracket.
* @return int the dimension found, -1 if none
*/
/**
* This method is used to retrieve position before the next right brace or semi-colon.
* @return int the position found.
*/
protected int [[#variable545ce100]](int start, int end) {
this.scanner.resetTo(start, end);
try {
int token;
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
switch (token) {
case TerminalTokens. [[#variable4f9afea0]]:
return this.scanner.currentPosition - 1;
}
}
}
catch (InvalidInputException e) {
// ignore
}
return -1;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#545ce100]] | retrieveRightBracketPosition |
| 1 | 2 | [[#545ce100]] | retrieveRightBrace |
| 2 | 1 | [[#4f9afea0]] | TokenNameRBRACKET |
| 2 | 2 | [[#4f9afea0]] | TokenNameRBRACE |