super.run(); thisThread = Thread.currentThread(); startChanging(); controlComponents(STOP_WORKING); threadChanging = null;
super.run(); thisThread = Thread.currentThread(); startTest(); controlComponents(STOP_WORKING); threadWork = 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/SmarttoolMissingIndicesFrame.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
			startChanging();
3
			startTest();
4
			controlComponents(STOP_WORKING);
4
			controlComponents(STOP_WORKING);
5
			threadChanging = null;
5
			threadWork = 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 different classes having the same super class
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
    startChanging();
    3
    startChanging();
    3
    startTest();
    Differences
    Expression1Expression2Difference
    startChangingstartTestMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression startChanging() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method startChanging
    Expression startTest() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method startTest
    Expression startChanging() is a void method call, and thus it cannot be parameterized
    Expression startTest() is a void method call, and thus it cannot be parameterized
    3
    startTest();
    4
    controlComponents(STOP_WORKING);
    4
    controlComponents(STOP_WORKING);
    5
    threadChanging = null;
    5
    threadChanging = null;
    5
    threadWork = null;
    Differences
    Expression1Expression2Difference
    threadChangingthreadWorkVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression threadChanging is a field being modified, and thus it cannot be parameterized
    Expression threadWork is a field being modified, and thus it cannot be parameterized
    5
    threadWork = 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 startChanging() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression startTest() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression startChanging() is a void method call, and thus it cannot be parameterized
    6Expression startTest() is a void method call, and thus it cannot be parameterized
    7Expression threadChanging is a field being modified, and thus it cannot be parameterized
    8Expression threadWork is a field being modified, and thus it cannot be parameterized