private XmlElement findColumn(XmlElement parent, String name) {
for (int i = 0; i < parent.count(); i++) {
XmlElement child = parent.getElement(i);
if (child.getAttribute("name").equals(name)) {
return child;
}
}
return null;
private DefaultMutableTreeNode findGroup(DefaultMutableTreeNode parent,
RosterGroup group) {
for (int i = 0; i < parent.getChildCount(); i++) {
DefaultMutableTreeNode child = (DefaultMutableTreeNode) parent
.getChildAt(i);
if (group.equals(child.getUserObject()))
return child;
}
return null;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/columns/ColumnConfigDialog.java
|
|
File path: /columba-1.4-src/plugins/org.columba.chat.altura/src/org/columba/chat/command/PopulateRoasterCommand.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private XmlElement findColumn(XmlElement parent, String name↵ | | 1 | private DefaultMutableTreeNode findGroup(DefaultMutableTreeNode parent,↵
|
2 | ) {↵ | | 2 | RosterGroup group) {↵
|
3 | for (int i = 0; i < parent.count(); i++) {↵ | | 3 | for (int i = 0; i < parent.getChildCount(); i++) {↵
|
4 | XmlElement child = parent.getElemen↵ | | 4 | DefaultMutableTreeNode child = (DefaultMutableTreeNode) parent↵
|
5 | t(i);↵ | | 5 | .getChildAt(i);↵
|
|
6 | if (child.getAttribute("name").equals(name)) {↵ | | 6 | if (group.equals(child.getUserObject()))↵
|
7 | return child;↵ | | 7 | return child;↵
|
8 | }↵ | | |
|
9 | }↵ | | 8 | }↵
|
|
10 | return null;↵ | | 9 | return null;↵
|
11 | | | 10 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |