super.run(); thisThread = Thread.currentThread(); startSearching(); controlComponents(STOP_WORKING); threadSearching = null;
super.run(); thisThread = Thread.currentThread(); startChanging(); controlComponents(STOP_WORKING); threadChanging = null;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolChangeValuesFrame.java File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolChangeValuesFrame.java
Method name: void run() Method name: void run()
Number of AST nodes: 5 Number of AST nodes: 5
1
super.run();
1
super.run();
2
			thisThread = Thread.currentThread();
2
			thisThread = Thread.currentThread();
3
			startSearching();
3
			startChanging();
4
			controlComponents(STOP_WORKING);
4
			controlComponents(STOP_WORKING);
5
			threadSearching = null;
5
			threadChanging = null;
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 the same java file
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.run();
    1
    super.run();
    1
    super.run();
    Preondition Violations
    Super method call super.run(); cannot be extracted from method
    Super method call super.run(); cannot be extracted from method
    1
    super.run();
    2
    thisThread = Thread.currentThread();
    2
    thisThread = Thread.currentThread();
    3
    startSearching();
    3
    startSearching();
    3
    startChanging();
    Differences
    Expression1Expression2Difference
    startSearchingstartChangingMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression startSearching() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method startSearching
    Expression startChanging() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method startChanging
    Expression startSearching() is a void method call, and thus it cannot be parameterized
    Expression startChanging() is a void method call, and thus it cannot be parameterized
    3
    startChanging();
    4
    controlComponents(STOP_WORKING);
    4
    controlComponents(STOP_WORKING);
    5
    threadSearching = null;
    5
    threadSearching = null;
    5
    threadChanging = null;
    Differences
    Expression1Expression2Difference
    threadSearchingthreadChangingVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression threadSearching is a field being modified, and thus it cannot be parameterized
    Expression threadChanging is a field being modified, and thus it cannot be parameterized
    5
    threadChanging = null;
    Precondition Violations (8)
    Row Violation
    1Super method call super.run(); cannot be extracted from method
    2Super method call super.run(); cannot be extracted from method
    3Expression startSearching() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression startChanging() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression startSearching() is a void method call, and thus it cannot be parameterized
    6Expression startChanging() is a void method call, and thus it cannot be parameterized
    7Expression threadSearching is a field being modified, and thus it cannot be parameterized
    8Expression threadChanging is a field being modified, and thus it cannot be parameterized