for (int i = 0; i < attrs.getLength(); i++) { String aName = attrs.getLocalName(i); // Attr name if (aName.equals("")) { aName = attrs.getQName(i); } currentElement.addAttribute(aName, attrs.getValue(i)); }
for (int i = 0; i < attachments.size(); i++) { String name = ((StreamableMimePart) attachments.get(i)).getHeader() .getFileName(); if (name != null) { keyList.add(MailResourceLoader.getString("header", "attachment")); valueList.add(name);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/xml/XmlIO.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/command/SaveMessageBodyAsCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
for (int i = 0; i < attrs.getLength(); i++) {
1
for (int i = 0; i < att
2
					
2
achments.size(); i++) {
3
String aName = attrs.getLocalName(i); // Attr name
3
            String name = 
4
					
4
((StreamableMimePart) attachments.get(i)).getHeader()
5
                           .getFileName();
5
if (aName.equals("")) {
6
            if (name
6
						aName = attrs.getQName(i);
7
					}
8
					currentElement.addAttribute(aName
7
 != null) {
9
, attrs.getValue(i));
8
                keyList.add(MailResourceLoader.getString("header", "att
10
				}
9
achment"));
10
                valueList.add(name);
11
            
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0