Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.954 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 2981 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java |
2 | 12 | 216 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.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()]); } |
| ||||
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()]); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#900c1da0]] | fAnnotationModelLockObject |
1 | 2 | [[#900c1da0]] | getLockObject(annotationModel) |
2 | 1 | [[#900c1d40]] | fAnnotationModel |
2 | 2 | [[#900c1d40]] | annotationModel |
3 | 1 | [[#900c1ce0]] | fOverrideAnnotations |
3 | 2 | [[#900c1ce0]] | fOccurrenceAnnotations |
4 | 1 | [[#900c1c80]] | removeAnnotations |
4 | 2 | [[#900c1c80]] | removeOccurrenceAnnotations |