super(); this.searchTerm = searchTerm; this.providerTechnicalName = providerTechnicalName; this.searchCriteriaTechnicalName = searchCriteriaTechnicalName; this.searchInside = searchInside; this.startIndex = startIndex; this.resultCount = resultCount; type = TYPE.SIMPLE_SPECIFIC_CRITERIA;
super(); this.request = request; this.searchInside = searchInside; this.startIndex = startIndex; this.resultCount = resultCount; this.matchAll = matchAll; type = TYPE.COMPLEX;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchCommandReference.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchCommandReference.java
Method name: void SearchCommandReference(String, String, String, boolean, int, int) Method name: void SearchCommandReference(List, boolean, int, int, boolean)
Number of AST nodes: 8 Number of AST nodes: 7
1
super();
1
super();
2
		this.searchTerm = searchTerm;
2
		this.
3
		this.providerTechnicalName = providerTechnicalName;
4
		this.searchCriteriaTechnicalName = searchCriteriaTechnicalName;
3
request = request;
5
		this.searchInside = searchInside;
4
		this.searchInside = searchInside;
6
		this.startIndex = startIndex;
5
		this.startIndex = startIndex;
7
		this.resultCount = resultCount;
6
		this.resultCount = resultCount;
7
		this.matchAll = matchAll;
8
		type = TYPE.SIMPLE_SPECIFIC_CRITERIA;
8
		type = TYPE.COMPLEX;
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 declared in the same class
Number of node comparisons38
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super();
    1
    super();
    1
    super();
    Preondition Violations
    Super constructor call super(); cannot be extracted from constructor
    Super constructor call super(); cannot be extracted from constructor
    1
    super();
                                                    
    2
    this.request = request;
    Preondition Violations
    Unmatched statement this.request=request; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.request = request;
    2
    this.searchTerm = searchTerm;
    2
    this.searchTerm = searchTerm;
    Preondition Violations
    Unmatched statement this.searchTerm=searchTerm; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                
    3
    this.providerTechnicalName = providerTechnicalName;
    3
    this.providerTechnicalName = providerTechnicalName;
    Preondition Violations
    Unmatched statement this.providerTechnicalName=providerTechnicalName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                            
    4
    this.searchCriteriaTechnicalName = searchCriteriaTechnicalName;
    4
    this.searchCriteriaTechnicalName = searchCriteriaTechnicalName;
    Preondition Violations
    Unmatched statement this.searchCriteriaTechnicalName=searchCriteriaTechnicalName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                    
    5
    this.searchInside = searchInside;
    3
    this.searchInside = searchInside;
    6
    this.startIndex = startIndex;
    4
    this.startIndex = startIndex;
    7
    this.resultCount = resultCount;
    5
    this.resultCount = resultCount;
                                                        
    6
    this.matchAll = matchAll;
    Preondition Violations
    Unmatched statement this.matchAll=matchAll; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6
    this.matchAll = matchAll;
    8
    type = TYPE.SIMPLE_SPECIFIC_CRITERIA;
    8
    type = TYPE.SIMPLE_SPECIFIC_CRITERIA;
    7
    type = TYPE.COMPLEX;
    Differences
    Expression1Expression2Difference
    SIMPLE_SPECIFIC_CRITERIACOMPLEXVARIABLE_NAME_MISMATCH
    7
    type = TYPE.COMPLEX;
    Precondition Violations (7)
    Row Violation
    1Super constructor call super(); cannot be extracted from constructor
    2Super constructor call super(); cannot be extracted from constructor
    3Unmatched statement this.request=request; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement this.searchTerm=searchTerm; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement this.providerTechnicalName=providerTechnicalName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement this.searchCriteriaTechnicalName=searchCriteriaTechnicalName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    7Unmatched statement this.matchAll=matchAll; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted