Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 3 | 2 | 0.964 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 2863 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java |
2 | 7 | 156 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java |
3 | 7 | 632 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingPresenter.java |
| ||||
/** * Returns the lock object for the given annotation model. * * @param annotationModel the annotation model * @return the annotation model's lock object * @since 3.0 */ private Object getLockObject(IAnnotationModel annotationModel) { if (annotationModel instanceof ISynchronizable) { Object lock = ((ISynchronizable) annotationModel).getLockObject(); if (lock != null) return lock; } return annotationModel; } |
| ||||
/** * Returns the lock object for the given annotation model. * * @param annotationModel the annotation model * @return the annotation model's lock object * @since 3.0 */ private Object getLockObject(IAnnotationModel annotationModel) { if (annotationModel instanceof ISynchronizable) { Object lock = ((ISynchronizable) annotationModel).getLockObject(); if (lock != null) return lock; } return annotationModel; } |
| ||||
/** * @param document the document * @return the document's lock object */ private Object getLockObject(IDocument document) { if (document instanceof ISynchronizable) { Object lock = ((ISynchronizable) document).getLockObject(); if (lock != null) return lock; } return document; } |
| |||
/** * Returns the lock object for the given annotation model. * * @param annotationModel the annotation model * @return the annotation model's lock object * @since 3.0 */ /** * @param document the document * @return the document's lock object */ private Object getLockObject( [[#variable583d3bc0]] [[#variable583d3b40]]) { if ( [[#variable583d3b40]]instanceof ISynchronizable) { Object lock = ((ISynchronizable) [[#variable583d3b40]]).getLockObject(); if (lock != null) return lock; } return [[#variable583d3b40]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#583d3bc0]] | IAnnotationModel |
1 | 2 | [[#583d3bc0]] | IDocument |
1 | 3 | [[#583d3bc0]] | IAnnotationModel |
2 | 1 | [[#583d3b40]] | annotationModel |
2 | 2 | [[#583d3b40]] | document |
2 | 3 | [[#583d3b40]] | annotationModel |