CloneSet3032


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7320.964class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
172863
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
27156
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java
37632
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingPresenter.java
Clone Instance
1
Line Count
7
Source Line
2863
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.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;
        }


Clone Instance
2
Line Count
7
Source Line
156
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.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;
        }


Clone Instance
3
Line Count
7
Source Line
632
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingPresenter.java

        /**
         * @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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#583d3bc0]]
IAnnotationModel 
12[[#583d3bc0]]
IDocument 
13[[#583d3bc0]]
IAnnotationModel 
21[[#583d3b40]]
annotationModel 
22[[#583d3b40]]
document 
23[[#583d3b40]]
annotationModel