_candidates = candidates; _replacementStart = replacementStart; _stringToReplace = stringToReplace;
selectListStart = start; selectListEnd = NO_LIMIT; setEndPosition(selectListEnd);
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/completion/CompletionCandidates.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/completions/SQLSelectStatement.java
Method name: void CompletionCandidates(CompletionInfo[], int, String) Method name: void setSelectListStart(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
_candidates = candidates;
1
selectListStart = start;
2
      _replacementStart = replacementStart;
2
       
3
      _stringToReplace = stringToReplace
3
 selectListEnd = NO_LIMIT;
4
;
4
        setEndPosition(selectListEnd);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons7
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    _candidates = candidates;
    1
    _candidates = candidates;
    Preondition Violations
    Unmatched statement _candidates=candidates; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
    2
    _replacementStart = replacementStart;
    2
    _replacementStart = replacementStart;
    1
    selectListStart = start;
    Differences
    Expression1Expression2Difference
    _replacementStartselectListStartVARIABLE_NAME_MISMATCH
    replacementStartstartVARIABLE_NAME_MISMATCH
    1
    selectListStart = start;
                                                        
    2
    selectListEnd = NO_LIMIT;
    Preondition Violations
    Unmatched statement selectListEnd=NO_LIMIT; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    selectListEnd = NO_LIMIT;
                                                                      
    3
    setEndPosition(selectListEnd);
    Preondition Violations
    Unmatched statement setEndPosition(selectListEnd); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    setEndPosition(selectListEnd);
    3
    _stringToReplace = stringToReplace;
    3
    _stringToReplace = stringToReplace;
    Preondition Violations
    Unmatched statement _stringToReplace=stringToReplace; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                            
    Precondition Violations (4)
    Row Violation
    1Unmatched statement _candidates=candidates; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement selectListEnd=NO_LIMIT; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement setEndPosition(selectListEnd); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement _stringToReplace=stringToReplace; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted