String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex()); if (title.equals(s_stringMgr.getString("AboutBoxDialog.system"))) { _systemPnl._memoryPnl.startTimer(); }
String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex()); if (title.equals(s_stringMgr.getString("AboutBoxDialog.system"))) { _systemPnl._memoryPnl.stopTimer(); }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/AboutBoxDialog.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/AboutBoxDialog.java
Method name: void windowActivated(WindowEvent) Method name: void windowDeactivated(WindowEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());
1
String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());
2
				if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
2
				if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
3
				{
3
				{
4
					_systemPnl._memoryPnl.startTimer();
4
					_systemPnl._memoryPnl.stopTimer();
5
				}
5
				}
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.3
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());
    1
    String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());
    2
    if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
    2
    if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
    2
    if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
    Differences
    Expression1Expression2Difference
    startTimerstopTimerMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized
    Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized
    2
    if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))
    3
    _systemPnl._memoryPnl.startTimer();
    3
    _systemPnl._memoryPnl.startTimer();
    3
    _systemPnl._memoryPnl.stopTimer();
    Differences
    Expression1Expression2Difference
    startTimerstopTimerMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized
    Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized
    3
    _systemPnl._memoryPnl.stopTimer();
    Precondition Violations (9)
    Row Violation
    1Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized
    4Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized
    5Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized
    8Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized
    9The refactoring of the clones is infeasible, because classes and do not have a common superclass