CloneSet1526


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.954statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1122981
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
212216
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java
Clone Instance
1
Line Count
12
Source Line
2981
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java

                        synchronized (getLockObject(annotationModel)) {
                                if (annotationModel instanceof IAnnotationModelExtension) {
                                        ((IAnnotationModelExtension) annotationModel).replaceAnnotations(fOccurrenceAnnotations, annotationMap);
                                }
                                else   {
                                        removeOccurrenceAnnotations();
                                        Iterator iter = annotationMap.entrySet().iterator();
                                        while (iter.hasNext()) {
                                                Map.Entry mapEntry = (Map.Entry) iter.next();
                                                annotationModel.addAnnotation((Annotation) mapEntry.getKey(), (Position) mapEntry.getValue());
                                        }
                                }
                                fOccurrenceAnnotations = (Annotation[]) annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]);
                        }


Clone Instance
2
Line Count
12
Source Line
216
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java

                synchronized (fAnnotationModelLockObject) {
                        if (fAnnotationModel instanceof IAnnotationModelExtension) {
                                ((IAnnotationModelExtension) fAnnotationModel).replaceAnnotations(fOverrideAnnotations, annotationMap);
                        }
                        else   {
                                removeAnnotations();
                                Iterator iter = annotationMap.entrySet().iterator();
                                while (iter.hasNext()) {
                                        Map.Entry mapEntry = (Map.Entry) iter.next();
                                        fAnnotationModel.addAnnotation((Annotation) mapEntry.getKey(), (Position) mapEntry.getValue());
                                }
                        }
                        fOverrideAnnotations = (Annotation[]) annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]);
                }


Clone AbstractionParameter Count: 4Parameter Bindings

synchronized ( [[#variable900c1da0]]) {
  if ( [[#variable900c1d40]]instanceof IAnnotationModelExtension) {
    ((IAnnotationModelExtension)  [[#variable900c1d40]]).replaceAnnotations( [[#variable900c1ce0]], annotationMap);
  }
  else {
     [[#variable900c1c80]]();
    Iterator iter = annotationMap.entrySet().iterator();
    while (iter.hasNext()) {
      Map.Entry mapEntry = (Map.Entry) iter.next();
       [[#variable900c1d40]].addAnnotation((Annotation) mapEntry.getKey(), (Position) mapEntry.getValue());
    }
  }
   [[#variable900c1ce0]]= (Annotation[]) annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#900c1da0]]
fAnnotationModelLockObject 
12[[#900c1da0]]
getLockObject(annotationModel) 
21[[#900c1d40]]
fAnnotationModel 
22[[#900c1d40]]
annotationModel 
31[[#900c1ce0]]
fOverrideAnnotations 
32[[#900c1ce0]]
fOccurrenceAnnotations 
41[[#900c1c80]]
removeAnnotations 
42[[#900c1c80]]
removeOccurrenceAnnotations