ISQLFilterPanel pnl = it.next(); if (isDebug) { start = System.currentTimeMillis(); } pnl.applyChanges(); if (isDebug) { s_log.debug("Panel " + pnl.getTitle() + " applied changes in " + (System.currentTimeMillis() - start) + "ms"); }
ISQLFilterPanel pnl = it.next(); if (isDebug) { start = System.currentTimeMillis(); } pnl.initialize(tab.getSQLFilterClauses()); if (isDebug) { s_log.debug("Panel " + pnl.getTitle() + " initialized in " + (System.currentTimeMillis() - start) + "ms"); }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterSheet.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterSheet.java
Method name: void performOk() Method name: void setVisible(boolean)
Number of AST nodes: 6 Number of AST nodes: 6
1
ISQLFilterPanel pnl = it.next();
1
ISQLFilterPanel pnl = it.next();
2
			if (isDebug)
2
						if (isDebug)
3
			{
3
			
4
			{
4
				start = System.currentTimeMillis();
5
							start = System.currentTimeMillis();
5
			}
6
						}
6
			pnl.applyChanges();
7
						pnl.initialize(tab.getSQLFilterClauses());
7
			if (isDebug)
8
						if (isDebug)
8
			{
9
			
10
			{
9
				s_log.debug("Panel " + pnl.getTitle() + " app
11
							s_log.debug("Panel " + pnl.getTitle()
10
lied changes in "
12
									+ " initialized in "
11
						+ (System.currentTimeMillis() - start) + "ms");
13
									+ (System.currentTimeMillis() - start) + "ms");
12
			}
14
						}
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 comparisons18
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)30.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    ISQLFilterPanel pnl = it.next();
    12
    ISQLFilterPanel pnl = it.next();
    5
    if (isDebug)
    13
    if (isDebug)
    6
    start = System.currentTimeMillis();
    14
    start = System.currentTimeMillis();
    7
    pnl.applyChanges();
    7
    pnl.applyChanges();
    15
    pnl.initialize(tab.getSQLFilterClauses());
    Differences
    Expression1Expression2Difference
    applyChangesinitializeMETHOD_INVOCATION_NAME_MISMATCH
    pnl.applyChanges()pnl.initialize(tab.getSQLFilterClauses())ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized
    Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized
    Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized
    Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized
    15
    pnl.initialize(tab.getSQLFilterClauses());
    8
    if (isDebug)
    16
    if (isDebug)
    9
    s_log.debug("Panel " + pnl.getTitle() + " applied changes in " + (System.currentTimeMillis() - start) + "ms");
    9
    s_log.debug("Panel " + pnl.getTitle() + " applied changes in " + (System.currentTimeMillis() - start) + "ms");
    17
    s_log.debug("Panel " + pnl.getTitle() + " initialized in " + (System.currentTimeMillis() - start) + "ms");
    Differences
    Expression1Expression2Difference
    " applied changes in "" initialized in "LITERAL_VALUE_MISMATCH
    17
    s_log.debug("Panel " + pnl.getTitle() + " initialized in " + (System.currentTimeMillis() - start) + "ms");
    Precondition Violations (8)
    Row Violation
    1Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized
    4Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized
    5Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized
    8Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized