Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 4 | 3 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 279 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java |
2 | 8 | 1772 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java |
3 | 8 | 30 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ModelUpdater.java |
4 | 8 | 177 | 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. */ 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 } } } |
| ||||
/* * 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 } } } |
| ||||
/** * 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 } } } |
| ||||
/** * 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 } } } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5256e580]] | /** * Adds the given child handle to its parent's cache of children. */ protected |
1 | 2 | [[#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 |
1 | 3 | [[#5256e580]] | /* * Adds the given child handle to its parent's cache of children. */ private |
1 | 4 | [[#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 |
2 | 1 | [[#b1a972a0]] | addToParentInfo |
2 | 2 | [[#b1a972a0]] | removeFromParentInfo |
2 | 3 | [[#b1a972a0]] | addToParentInfo |
2 | 4 | [[#b1a972a0]] | removeFromParentInfo |
3 | 1 | [[#5256e600]] | addChild |
3 | 2 | [[#5256e600]] | removeChild |
3 | 3 | [[#5256e600]] | addChild |
3 | 4 | [[#5256e600]] | removeChild |