URI uri=null; try { uri = new URI("columba://org.columba.contact/"+folderId+"/"+contactId); } catch (URISyntaxException e) { e.printStackTrace(); } return uri;
URI uri=null; try { uri = new URI("columba://org.columba.mail/"+folderId+"/"+messageId); } catch (URISyntaxException e) { e.printStackTrace(); } return uri;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/contact/search/SearchResultBuilder.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/search/SearchResultBuilder.java
Method name: URI createURI(String, String) Method name: URI createURI(String, Object)
Number of AST nodes: 4 Number of AST nodes: 4
1
URI uri=null;
1
URI uri=null;
2
		try {
2
		try {
3
			uri = new URI("columba://org.columba.contact/"+folderId+"/"+contactId);
3
			uri = new URI("columba://org.columba.mail/"+folderId+"/"+messageId);
4
		} catch (URISyntaxException e) {
4
		} catch (URISyntaxException e) {
5
			e.printStackTrace();
5
			e.printStackTrace();
6
		}
6
		}
7
		return uri;
7
		return uri;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    URI uri = null;
    1
    URI uri = null;
    2
    try
    2
    try
                                                                                                                                                        
    3
    uri = new URI("columba://org.columba.mail/" + folderId + "/" + messageId);
    Preondition Violations
    Unmatched statement uri=new URI("columba://org.columba.mail/" + folderId + "/"+ messageId); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3
    uri = new URI("columba://org.columba.mail/" + folderId + "/" + messageId);
    3
    uri = new URI("columba://org.columba.contact/" + folderId + "/" + contactId);
    3
    uri = new URI("columba://org.columba.contact/" + folderId + "/" + contactId);
    Preondition Violations
    Unmatched statement uri=new URI("columba://org.columba.contact/" + folderId + "/"+ contactId); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                              
    4
    return uri;
    4
    return uri;
    Precondition Violations (2)
    Row Violation
    1Unmatched statement uri=new URI("columba://org.columba.mail/" + folderId + "/"+ messageId); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement uri=new URI("columba://org.columba.contact/" + folderId + "/"+ contactId); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted