| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 33 | 2 | 4 | 0.980 | block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 33 | 2424 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java |
| 2 | 33 | 2971 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java |
| ||||
{
int length = string.length;
// need a minimum 2 char
if (start >= length - 1) {
throw new IllegalArgumentException();
}
char c = string[start];
if (c != C_ARRAY) {
throw new IllegalArgumentException();
}
int index = start;
c = string[ ++index];
while (c == C_ARRAY) {
// need a minimum 2 char
if (index >= length - 1) {
throw new IllegalArgumentException();
}
c = string[ ++index];
}
int e = appendTypeSignature(string, index, fullyQualifyTypeNames, buffer);
for (int i = 1, dims = index - start; i < dims; i++) {
buffer.append('[').append(']');
}
if (isVarArgs) {
buffer.append('.').append('.').append('.');
}
else {
buffer.append('[').append(']');
}
return e;
}
|
| ||||
{
int length = string.length;
// need a minimum 2 char
if (start >= length - 1) {
throw new IllegalArgumentException();
}
char c = string[start];
if (c != Signature.C_ARRAY) {
throw new IllegalArgumentException();
}
int index = start;
c = string[ ++index];
while (c == Signature.C_ARRAY) {
// need a minimum 2 char
if (index >= length - 1) {
throw new IllegalArgumentException();
}
c = string[ ++index];
}
int e = appendTypeSignatureForAnchor(string, index, buffer, false);
for (int i = 1, dims = index - start; i < dims; i++) {
buffer.append('[').append(']');
}
if (isVarArgs) {
buffer.append('.').append('.').append('.');
}
else {
buffer.append('[').append(']');
}
return e;
}
|
| |||
{
int length = string.length;
// need a minimum 2 char
if (start >= length - 1) {
throw new IllegalArgumentException();
}
char c = string[start];
if (c != [[#variable57a343c0]]) {
throw new IllegalArgumentException();
}
int index = start;
c = string[ ++index];
while (c == [[#variable57a343c0]]) {
// need a minimum 2 char
if (index >= length - 1) {
throw new IllegalArgumentException();
}
c = string[ ++index];
}
int e = [[#variable57a34360]](string, index, [[#variableb2015300]], [[#variable57a343a0]]);
for (int i = 1, dims = index - start; i < dims; i++) {
buffer.append('[').append(']');
}
if (isVarArgs) {
buffer.append('.').append('.').append('.');
}
else {
buffer.append('[').append(']');
}
return e;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#57a343c0]] | Signature.C_ARRAY |
| 1 | 2 | [[#57a343c0]] | C_ARRAY |
| 2 | 1 | [[#57a34360]] | appendTypeSignatureForAnchor |
| 2 | 2 | [[#57a34360]] | appendTypeSignature |
| 3 | 1 | [[#b2015300]] | buffer |
| 3 | 2 | [[#b2015300]] | fullyQualifyTypeNames |
| 4 | 1 | [[#57a343a0]] | false |
| 4 | 2 | [[#57a343a0]] | buffer |