this.dbInfo = dbInfo; setTitle(s_stringMgr.getString("AddAutoIncrementDialog.title", dbInfo.getColumnName())); init();
this.chars = chars; this.current = chars != null ? chars.first() : CharacterIterator.DONE; notify();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddAutoIncrementDialog.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
Method name: void AddAutoIncrementDialog(TableColumnInfo) Method name: void accept(CharacterIterator)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.dbInfo = dbInfo;
1
this.
2
        setTitle(s_stringMgr.getString("AddAutoIncrementDialog.title", dbInfo.getColumnName()));
3
        init
2
chars = chars;
3
			this.current = chars != null ? chars.first() : CharacterIterator.DONE;
4
();
4
			notify();
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 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
    this.chars = chars;
    Preondition Violations
    Unmatched statement this.chars=chars; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    1
    this.chars = chars;
    1
    this.dbInfo = dbInfo;
    1
    this.dbInfo = dbInfo;
    Preondition Violations
    Unmatched statement this.dbInfo=dbInfo; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                
                                                                                                                                                  
    2
    this.current = chars != null ? chars.first() : CharacterIterator.DONE;
    Preondition Violations
    Unmatched statement this.current=chars != null ? chars.first() : CharacterIterator.DONE; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.current = chars != null ? chars.first() : CharacterIterator.DONE;
    2
    setTitle(s_stringMgr.getString("AddAutoIncrementDialog.title", dbInfo.getColumnName()));
                                                                                                                                                                                        
    3
    init();
    3
    init();
    3
    notify();
    Differences
    Expression1Expression2Difference
    initnotifyMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression notify() is a void method call, and thus it cannot be parameterized
    3
    notify();
    Precondition Violations (7)
    Row Violation
    1Unmatched statement this.chars=chars; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement this.dbInfo=dbInfo; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement this.current=chars != null ? chars.first() : CharacterIterator.DONE; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression init() is a void method call, and thus it cannot be parameterized
    6Expression notify() is a void method call, and thus it cannot be parameterized
    7The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.gui.AddAutoIncrementDialog and net.sourceforge.squirrel_sql.client.session.parser.kernel.ParserThread.IncrementalBuffer do not have a common superclass