CloneSet587


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24320.967switch_groups[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1252785
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
2242843
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
3242921
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
Clone Instance
1
Line Count
25
Source Line
2785
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

                case ProblemReasons.Ambiguous:
                        id = IProblem.AmbiguousField;
                        break;
                case ProblemReasons.NonStaticReferenceInStaticContext:
                        id = IProblem.NonStaticFieldFromStaticInvocation;
                        break;
                case ProblemReasons.NonStaticReferenceInConstructorInvocation:
                        id = IProblem.InstanceFieldDuringConstructorInvocation;
                        break;
                case ProblemReasons.InheritedNameHidesEnclosingName:
                        id = IProblem.InheritedFieldHidesEnclosingName;
                        break;
                case ProblemReasons.ReceiverTypeNotVisible:
                        this.handle(
                                IProblem.NotVisibleType, // cannot occur in javadoc comments
                                 new String[] {
                                               new String(searchedType.leafComponentType().readableName())
                                              }, new String[] {
                                                               new String(searchedType.leafComponentType().shortReadableName())
                                                              }, fieldRef.receiver.sourceStart, fieldRef.receiver.sourceEnd);
                        return;
                case ProblemReasons.NoError:  // 0
                default:
                        needImplementation(); // want to fail to see why we were here...
                        break;


Clone Instance
2
Line Count
24
Source Line
2843
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

                case ProblemReasons.Ambiguous:
                        id = IProblem.AmbiguousField;
                        break;
                case ProblemReasons.NonStaticReferenceInStaticContext:
                        id = IProblem.NonStaticFieldFromStaticInvocation;
                        break;
                case ProblemReasons.NonStaticReferenceInConstructorInvocation:
                        id = IProblem.InstanceFieldDuringConstructorInvocation;
                        break;
                case ProblemReasons.InheritedNameHidesEnclosingName:
                        id = IProblem.InheritedFieldHidesEnclosingName;
                        break;
                case ProblemReasons.ReceiverTypeNotVisible:
                        this.handle(
                                IProblem.NotVisibleType, 
                                new String[] {
                                              new String(field.declaringClass.leafComponentType().readableName())
                                             }, new String[] {
                                                              new String(field.declaringClass.leafComponentType().shortReadableName())
                                                             }, nameRef.sourceStart, nameRef.sourceEnd);
                        return;
                case ProblemReasons.NoError:  // 0
                default:
                        needImplementation(); // want to fail to see why we were here...
                        break;


Clone Instance
3
Line Count
24
Source Line
2921
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

                case ProblemReasons.Ambiguous:
                        id = IProblem.AmbiguousField;
                        break;
                case ProblemReasons.NonStaticReferenceInStaticContext:
                        id = IProblem.NonStaticFieldFromStaticInvocation;
                        break;
                case ProblemReasons.NonStaticReferenceInConstructorInvocation:
                        id = IProblem.InstanceFieldDuringConstructorInvocation;
                        break;
                case ProblemReasons.InheritedNameHidesEnclosingName:
                        id = IProblem.InheritedFieldHidesEnclosingName;
                        break;
                case ProblemReasons.ReceiverTypeNotVisible:
                        this.handle(
                                IProblem.NotVisibleType, 
                                new String[] {
                                              new String(searchedType.leafComponentType().readableName())
                                             }, new String[] {
                                                              new String(searchedType.leafComponentType().shortReadableName())
                                                             }, nameRef.sourceStart, nameRef.sourceEnd);
                        return;
                case ProblemReasons.NoError:  // 0
                default:
                        needImplementation(); // want to fail to see why we were here...
                        break;


Clone AbstractionParameter Count: 2Parameter Bindings

case ProblemReasons.Ambiguous:
  id = IProblem.AmbiguousField;
  break;
case ProblemReasons.NonStaticReferenceInStaticContext:
  id = IProblem.NonStaticFieldFromStaticInvocation;
  break;
case ProblemReasons.NonStaticReferenceInConstructorInvocation:
  id = IProblem.InstanceFieldDuringConstructorInvocation;
  break;
case ProblemReasons.InheritedNameHidesEnclosingName:
  id = IProblem.InheritedFieldHidesEnclosingName;
  break;
case ProblemReasons.ReceiverTypeNotVisible:
  this.handle(IProblem.NotVisibleType, // cannot occur in javadoc comments
               new String[] {
                              new String( [[#variable57ad1ac0]].leafComponentType().readableName())
                            }, new String[] {
                                              new String( [[#variable57ad1ac0]].leafComponentType().shortReadableName())
                                            },  [[#variable57ad1a60]].sourceStart,  [[#variable57ad1a60]].sourceEnd);
  return;
case ProblemReasons.NoError: // 0
default:
  needImplementation(); // want to fail to see why we were here...
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57ad1ac0]]
field.declaringClass 
12[[#57ad1ac0]]
searchedType 
13[[#57ad1ac0]]
searchedType 
21[[#57ad1a60]]
nameRef 
22[[#57ad1a60]]
fieldRef.receiver 
23[[#57ad1a60]]
nameRef