| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 3 | 3 | 0.959 | statement_sequence[7] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 451 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| 2 | 15 | 474 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| 3 | 15 | 497 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
//read upto the tag
while ( !tokens[i++ ].equals(tag)) {
/*empty*/
}
//read upto the }
byte[] bytes = new byte[tokens.length]; //can't be bigger
int ic = 0;
String token;
while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
int c = Integer.parseInt(token);
bytes[ic++ ] = (byte) c;
}
//resize
System.arraycopy(bytes, 0, bytes = new byte[ic], 0, ic);
buildFileForTable(filename, bytes);
|
| ||||
//read upto the tag
while ( !tokens[i++ ].equals(tag)) {
/*empty*/
}
//read upto the }
char[] chars = new char[tokens.length]; //can't be bigger
int ic = 0;
String token;
while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
int c = Integer.parseInt(token);
chars[ic++ ] = (char) c;
}
//resize
System.arraycopy(chars, 0, chars = new char[ic], 0, ic);
buildFileForTable(filename, chars);
|
| ||||
//read upto the tag
while ( !tokens[i++ ].equals(tag)) {
/*empty*/
}
//read upto the }
char[] chars = new char[tokens.length]; //can't be bigger
int ic = 0;
String token;
while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
int c = Integer.parseInt(token);
chars[ic++ ] = (char) (c + 32768);
}
//resize
System.arraycopy(chars, 0, chars = new char[ic], 0, ic);
buildFileForTable(filename, chars);
|
| |||
//read upto the tag
while ( !tokens[i++ ].equals(tag)) {
/*empty*/
}
[[#variableb77960c0]][] [[#variable5b8cc000]]= new [[#variableb77960c0]][tokens.length]; //can't be bigger
int ic = 0;
String token;
while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
int c = Integer.parseInt(token);
[[#variable5b8cc000]][ic++ ] = ( [[#variableb77960c0]]) [[#variable7da06300]];
}
//resize
System.arraycopy( [[#variable5b8cc000]], 0, [[#variable5b8cc000]]= new [[#variableb77960c0]][ic], 0, ic);
buildFileForTable(filename, [[#variable5b8cc000]]);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b77960c0]] | //read upto the } char |
| 1 | 2 | [[#b77960c0]] | //read upto the } char |
| 1 | 3 | [[#b77960c0]] | //read upto the } byte |
| 2 | 1 | [[#5b8cc000]] | chars |
| 2 | 2 | [[#5b8cc000]] | chars |
| 2 | 3 | [[#5b8cc000]] | bytes |
| 3 | 1 | [[#7da06300]] | (c + 32768) |
| 3 | 2 | [[#7da06300]] | c |
| 3 | 3 | [[#7da06300]] | c |