| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 4 | 3 | 0.982 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 4247 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java |
| 2 | 11 | 4259 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java |
| 3 | 11 | 4305 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java |
| 4 | 11 | 4896 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java |
| ||||
public void localVariableCannotBeNull(LocalVariableBinding local, ASTNode location) {
int severity = computeSeverity(IProblem.LocalVariableCannotBeNull);
if (severity == ProblemSeverities.Ignore) return;
String[] arguments = new String[] {
new String(local.name)
};
this.handle(
IProblem.LocalVariableCannotBeNull,
arguments,
arguments,
severity,
nodeSourceStart(local, location),
nodeSourceEnd(local, location));
}
|
| ||||
public void localVariableCanOnlyBeNull(LocalVariableBinding local, ASTNode location) {
int severity = computeSeverity(IProblem.LocalVariableCanOnlyBeNull);
if (severity == ProblemSeverities.Ignore) return;
String[] arguments = new String[] {
new String(local.name)
};
this.handle(
IProblem.LocalVariableCanOnlyBeNull,
arguments,
arguments,
severity,
nodeSourceStart(local, location),
nodeSourceEnd(local, location));
}
|
| ||||
public void localVariableMayBeNull(LocalVariableBinding local, ASTNode location) {
int severity = computeSeverity(IProblem.LocalVariableMayBeNull);
if (severity == ProblemSeverities.Ignore) return;
String[] arguments = new String[] {
new String(local.name)
};
this.handle(
IProblem.LocalVariableMayBeNull,
arguments,
arguments,
severity,
nodeSourceStart(local, location),
nodeSourceEnd(local, location));
}
|
| ||||
public void parameterAssignment(LocalVariableBinding local, ASTNode location) {
int severity = computeSeverity(IProblem.ParameterAssignment);
if (severity == ProblemSeverities.Ignore) return;
String[] arguments = new String[] {
new String(local.readableName())
};
this.handle(
IProblem.ParameterAssignment,
arguments,
arguments,
severity,
nodeSourceStart(local, location),
nodeSourceEnd(local, location)); // should never be a qualified name reference
}
|
| |||
public void [[#variable584c4980]](LocalVariableBinding local, ASTNode location) {
int severity = computeSeverity(IProblem. [[#variable584c48e0]]);
if (severity == ProblemSeverities.Ignore)
return;
String[] arguments = new String[] {
new String(local [[#variable584c4820]])
};
this.handle(IProblem. [[#variable584c48e0]], arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); // should never be a qualified name reference
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#584c4980]] | localVariableCannotBeNull |
| 1 | 2 | [[#584c4980]] | localVariableCanOnlyBeNull |
| 1 | 3 | [[#584c4980]] | localVariableMayBeNull |
| 1 | 4 | [[#584c4980]] | parameterAssignment |
| 2 | 1 | [[#584c48e0]] | LocalVariableCannotBeNull |
| 2 | 2 | [[#584c48e0]] | LocalVariableCanOnlyBeNull |
| 2 | 3 | [[#584c48e0]] | LocalVariableMayBeNull |
| 2 | 4 | [[#584c48e0]] | ParameterAssignment |
| 3 | 1 | [[#584c4820]] | .name |
| 3 | 2 | [[#584c4820]] | .name |
| 3 | 3 | [[#584c4820]] | .name |
| 3 | 4 | [[#584c4820]] | .readableName() |