this.technicalName = technicalName; this.name = name; this.title = title; this.description = description;
this.criteria = criteria; this.provider = provider; this.searchTerm = searchTerm;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchCriteria.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchRequest.java
Method name: void SearchCriteria(String, String, String, String) Method name: void SearchRequest(String, String, String)
Number of AST nodes: 4 Number of AST nodes: 3
1
this.technicalName = technicalName;
1
this.
2
		this.name = name;
3
		this.title = title;
4
		this.description = description
2
criteria = criteria;
3
		this.provider = provider;
5
;
4
		this.searchTerm = searchTerm;
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.0
Clones locationClones are in different classes
Number of node comparisons9
  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 fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    this.technicalName = technicalName;
    1
    this.technicalName = technicalName;
    1
    this.criteria = criteria;
    Differences
    Expression1Expression2Difference
    technicalNamecriteriaVARIABLE_NAME_MISMATCH
    technicalNamecriteriaVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.technicalName is a field being modified, and thus it cannot be parameterized
    Expression this.criteria is a field being modified, and thus it cannot be parameterized
    1
    this.criteria = criteria;
    2
    this.name = name;
    2
    this.name = name;
    2
    this.provider = provider;
    Differences
    Expression1Expression2Difference
    nameproviderVARIABLE_NAME_MISMATCH
    nameproviderVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.name is a field being modified, and thus it cannot be parameterized
    Expression this.provider is a field being modified, and thus it cannot be parameterized
    2
    this.provider = provider;
    3
    this.title = title;
    3
    this.title = title;
    3
    this.searchTerm = searchTerm;
    Differences
    Expression1Expression2Difference
    titlesearchTermVARIABLE_NAME_MISMATCH
    titlesearchTermVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.title is a field being modified, and thus it cannot be parameterized
    Expression this.searchTerm is a field being modified, and thus it cannot be parameterized
    3
    this.searchTerm = searchTerm;
    4
    this.description = description;
    4
    this.description = description;
    Preondition Violations
    Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                    
    Precondition Violations (8)
    Row Violation
    1Expression this.technicalName is a field being modified, and thus it cannot be parameterized
    2Expression this.criteria is a field being modified, and thus it cannot be parameterized
    3Expression this.name is a field being modified, and thus it cannot be parameterized
    4Expression this.provider is a field being modified, and thus it cannot be parameterized
    5Expression this.title is a field being modified, and thus it cannot be parameterized
    6Expression this.searchTerm is a field being modified, and thus it cannot be parameterized
    7Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8The refactoring of the clones is infeasible, because classes org.columba.core.search.SearchCriteria and org.columba.core.search.SearchRequest do not have a common superclass