| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 22 | 2 | 0 | 1.000 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 22 | 64 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnQualifiedNameReference.java |
| 2 | 23 | 54 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnSingleNameReference.java |
| ||||
if ( !binding.isValidBinding()) {
if (binding instanceof ProblemFieldBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible ||
binding.problemId() == ProblemReasons.InheritedNameHidesEnclosingName ||
binding.problemId() == ProblemReasons.NonStaticReferenceInConstructorInvocation ||
binding.problemId() == ProblemReasons.NonStaticReferenceInStaticContext) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidField(this, (FieldBinding) binding);
}
else if (binding instanceof ProblemReferenceBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidType(this, (TypeBinding) binding);
}
else {
scope.problemReporter().unresolvableReference(this, binding);
}
throw new SelectionNodeFound();
}
throw new SelectionNodeFound(binding);
|
| ||||
if ( !binding.isValidBinding()) {
if (binding instanceof ProblemFieldBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible ||
binding.problemId() == ProblemReasons.InheritedNameHidesEnclosingName ||
binding.problemId() == ProblemReasons.NonStaticReferenceInConstructorInvocation ||
binding.problemId() == ProblemReasons.NonStaticReferenceInStaticContext) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidField(this, (FieldBinding) binding);
}
else if (binding instanceof ProblemReferenceBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidType(this, (TypeBinding) binding);
}
else {
scope.problemReporter().unresolvableReference(this, binding);
}
throw new SelectionNodeFound();
}
throw new SelectionNodeFound(binding);
|
| |||
if ( !binding.isValidBinding()) {
if (binding instanceof ProblemFieldBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible || binding.problemId() == ProblemReasons.InheritedNameHidesEnclosingName || binding.problemId() == ProblemReasons.NonStaticReferenceInConstructorInvocation || binding.problemId() == ProblemReasons.NonStaticReferenceInStaticContext) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidField(this, (FieldBinding) binding);
}
else
if (binding instanceof ProblemReferenceBinding) {
// tolerate some error cases
if (binding.problemId() == ProblemReasons.NotVisible) {
throw new SelectionNodeFound(binding);
}
scope.problemReporter().invalidType(this, (TypeBinding) binding);
}
else {
scope.problemReporter().unresolvableReference(this, binding);
}
throw new SelectionNodeFound();
}
throw new SelectionNodeFound(binding);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||