CloneSet1524


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8430.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17279
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java
281772
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java
3830
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ModelUpdater.java
48177
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ModelUpdater.java
Clone Instance
1
Line Count
7
Source Line
279
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java

        /*
         * Adds the given child handle to its parent's cache of children. 
         */
        private void addToParentInfo(Openable child) {
                Openable parent = (Openable) child.getParent();
                if (parent != null && parent.isOpen()) {
                        try {
                                JavaElementInfo info = (JavaElementInfo) parent.getElementInfo();
                                info.addChild(child);
                        } catch (JavaModelException e) {
                                // do nothing - we already checked if open
                          }
                }
        }


Clone Instance
2
Line Count
8
Source Line
1772
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java

        /*
         * Removes the given element from its parents cache of children. If the
         * element does not have a parent, or the parent is not currently open,
         * this has no effect. 
         */
        private void removeFromParentInfo(Openable child) {

                Openable parent = (Openable) child.getParent();
                if (parent != null && parent.isOpen()) {
                        try {
                                JavaElementInfo info = (JavaElementInfo) parent.getElementInfo();
                                info.removeChild(child);
                        } catch (JavaModelException e) {
                                // do nothing - we already checked if open
                          }
                }
        }


Clone Instance
3
Line Count
8
Source Line
30
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ModelUpdater.java

        /**
         * Adds the given child handle to its parent's cache of children. 
         */
        protected void addToParentInfo(Openable child) {

                Openable parent = (Openable) child.getParent();
                if (parent != null && parent.isOpen()) {
                        try {
                                JavaElementInfo info = (JavaElementInfo) parent.getElementInfo();
                                info.addChild(child);
                        } catch (JavaModelException e) {
                                // do nothing - we already checked if open
                          }
                }
        }


Clone Instance
4
Line Count
8
Source Line
177
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ModelUpdater.java

        /**
         * Removes the given element from its parents cache of children. If the
         * element does not have a parent, or the parent is not currently open,
         * this has no effect. 
         */
        protected void removeFromParentInfo(Openable child) {

                Openable parent = (Openable) child.getParent();
                if (parent != null && parent.isOpen()) {
                        try {
                                JavaElementInfo info = (JavaElementInfo) parent.getElementInfo();
                                info.removeChild(child);
                        } catch (JavaModelException e) {
                                // do nothing - we already checked if open
                          }
                }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable5256e580]]void [[#variableb1a972a0]](Openable child) {
  Openable parent = (Openable) child.getParent();
  if (parent != null && parent.isOpen()) {
    try {
      JavaElementInfo info = (JavaElementInfo) parent.getElementInfo();
      info. [[#variable5256e600]](child);
    }
    catch (JavaModelException e) {
    // do nothing - we already checked if open
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5256e580]]
/**
 * Adds the given child handle to its parent's cache of children. 
 */
protected 
12[[#5256e580]]
/**
 * Removes the given element from its parents cache of children. If the
 * element does not have a parent, or the parent is not currently open,
 * this has no effect. 
 */
protected 
13[[#5256e580]]
/*
 * Adds the given child handle to its parent's cache of children. 
 */
private 
14[[#5256e580]]
/*
 * Removes the given element from its parents cache of children. If the
 * element does not have a parent, or the parent is not currently open,
 * this has no effect. 
 */
private 
21[[#b1a972a0]]
addToParentInfo 
22[[#b1a972a0]]
removeFromParentInfo 
23[[#b1a972a0]]
addToParentInfo 
24[[#b1a972a0]]
removeFromParentInfo 
31[[#5256e600]]
addChild 
32[[#5256e600]]
removeChild 
33[[#5256e600]]
addChild 
34[[#5256e600]]
removeChild